Reply to Re: Passing values from drop down menu

Your name:

Reply:


Posted by MsKitty on 02/06/06 06:20

I tried a version of your script on my server and it worked fine - I
also tried changing the _POST to HTTP_POST_VARS (as Iván was
suggesting) which also worked - here is the sample:

<?php



if($HTTP_POST_VARS['testform']) {

print_r($HTTP_POST_VARS);
exit;
}

?>
<form name="testform" action="<?php echo $PHP_SELF; ?>" method="post">

<?php


print "<select name='id'>
<option value=\"1\" >1</option>
<option value=\"2\" >2</option>";
echo "</select>";
echo "<input type='submit' value='Submit' name='testform'>
<input type='reset' value='Reset' name='reset'>
</form>";

?>

Kitty
OpenSkyWebDesign.com

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация