PHP Classes

select tag

Recommend this page to a friend!

      PHP Classes blog  >  Ask difficult questio...  >  All threads  >  select tag  >  (Un) Subscribe thread alerts  
Subject:select tag
Summary:help in select tag and database
Date:2011-08-10 20:17:20
Update:2011-08-10 21:43:23

  1. select tag   Reply   Report abuse  
Picture of moro moro - 2011-08-10 21:43:23

i have a select tag get its values from mysql database like this
<form method="post" action="">
<select name="Select1" style="width: 120px; height: 20px;">
$sql = mysql_query("SELECT * FROM `postion` order by `Postion_name` LIMIT 0 , 30 " );
echo "<option value='<?php $row[Postion_name] ?>' >".$row'Postion_name']."</option>";

<input type="submit" value="send">

and it worked successfuly but now i wanna to select any value from this select tag using php but i will print nothing

this is my code:

echo $_POST['Select1'];


For more information send a message to info at phpclasses dot org.