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> <head><title>test page</title></head> <body> <? if (isset($variable)) { /* do page 2 */ echo("<p>You chose : $variable</p>"); } else { /* do page 1 */ ?> <form method="post" action="<? echo ($PHP_SELF); ?>"> <p>Choose one : <select name="variable"> <option value="1">Red</option> <option value="2">Green</option> <option value="3">Blue</option> </select></p> <p><input 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