On Mon, 04 Feb 2002 09:32:31 -0200, you wrote:
First, you need to fix those tags :
select name=~x~
select name=x
option A option
option A /option
How can a access ~x~ content into a PHP variable ?
It happens automatically. When you submit a form, PHP variables are
created for the receiving script that match the contents of the form.
Take a look at this example, which posts back to itself :
html
headtitletest page/title/head
body
?
if (isset($variable)) {
/* do page 2 */
echo(pYou chose : $variable/p);
} else {
/* do page 1 */
?
form method=post action=? echo ($PHP_SELF); ?
pChoose one : select name=variable
option value=1Red/option
option value=2Green/option
option value=3Blue/option
/select/p
pinput type=submit name=go value=go/p
/form
?
}
?
/body
/html
Also check here http://www.faqts.com/knowledge_base/index.phtml/fid/6
for more help with forms.
copmuter programmer
I wish you'd fix that...
djo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php