Jump to content
php.lv forumi

problema ar option


art.y

Recommended Posts

Kā lai izpilda if vaicājumu, kad option value="0" ?

Šāds variants nestrādā...

<form method="post">
<select name="vietas">
<option value="0" name="all">Visas</option>
...
<input type="submit" value="Atlasīt" name="place">

if (isset($_POST['place']))
{
		 if (isset($_POST['all']))
		 {

Link to comment
Share on other sites

pashos pamatos nepareiza pieeeja :(

<optionam nevajag name atributu ...

tas jaliek pie <select ...

tad arii varesi parbaudiit...

edit: andrisp --> vienlaicigi un zibeniigi ;)

Edited by Grey_Wolf
Link to comment
Share on other sites

×
×
  • Create New...