从表单中调用php funktion [英] call php funktion from form
问题描述
嗨!
我没有eny代码来讨论chare,这只是一个理论上的问题。
通常你看起来像是
< form method =" POST" action =" some_php_script.php">
namn:< input type =" text"命名= QUOT;名称" size =" 20">
< br>
city< input type =" text"命名= QUOT;城市" size =" 20">
< input type =" submit" value =" Submit">< input type =" reset">
< / form>
我想知道它是怎么回事有可能将名字发送到一个funktion
在some_php_script.php和城市到另一个?
我的意思是如果我有some_php_script.php
< ;?
name_funktion($ name){
code ...
code ..
}
city_funktion($ city){
code ...
code ..
}
?>
所以我想将参数名从表格发送到name_funktion()和城市到
city_funktion()
-
提前付款
________________________
BTW。我知道我的英语不是最好的,所以请停止烦扰我/ b $ b关于我的拼写。是的,对不起,你不明白我的意思,但
没有必要对我大喊大叫。祝你有愉快的一天。
名称){
code ...
代码..
}
city_funktion(
city){
代码...
代码..
}
?>
所以我想要从表格发送参数名称到name_funktion()和城市到
city_funktion()
-
提前收益
________________________
BTW。我知道我的英语不是最好的,所以请停止烦扰我/ b $ b关于我的拼写。是的,对不起,你不明白我的意思,但
没有必要对我大喊大叫。祝你有愉快的一天。
*** Carramba写道/escribió(星期三,2005年6月15日10:24:31 +0200):所以我想将参数名称从表格发送到name_funktion()和城市到
city_funktion()
你可以从表格中读取表格字段
hi!
I don''t have eny code to chare, this is just teoretical question.
usualy you have for looks like
<form method="POST" action="some_php_script.php">
namn: <input type="text" name="name" size="20">
<br>
city <input type="text" name="city" size="20">
<input type="submit" value="Submit"><input type="reset">
</form>
what I am wondering how it would by possible to send name to one funktion
in some_php_script.php and city to another?
I mean if I have some_php_script.php
<?
name_funktion( $name ){
code...
code..
}
city_funktion( $city ){
code...
code..
}
?>
so I want to send parameter name from form to name_funktion() and city to
city_funktion()
--
Thanx in advance
________________________
BTW. I know my english is not best in the word, so please stop bugging me
about my spelling. And yes Iam sorry you don''t understand what I mean, but
there is no point to yell at me. Have a nice day.
name ){
code...
code..
}
city_funktion(
city ){
code...
code..
}
?>
so I want to send parameter name from form to name_funktion() and city to
city_funktion()
--
Thanx in advance
________________________
BTW. I know my english is not best in the word, so please stop bugging me
about my spelling. And yes Iam sorry you don''t understand what I mean, but
there is no point to yell at me. Have a nice day.
*** Carramba wrote/escribió (Wed, 15 Jun 2005 10:24:31 +0200):so I want to send parameter name from form to name_funktion() and city to
city_funktion()
You can read form fields from the
这篇关于从表单中调用php funktion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!