Hey,
I don't understand why I'm getting the variable in my p2.php when I set it in p1.php the following way:
in p1.php I have::
----------------------------
<code><form action="p2.php" method="post">
<select name="name" size="1" >
while ($myrow = mysql_fetch_array($result)) {
printf("<option value=%s>%s", $PHP_SELF, $myrow['name'],"</option>");
}
?>
</select>
<br>
<input type="submit" value="SHOW by NAME">
</form>
-
- while ($myrow = mysql_fetch_array($result)) {
-
- printf("<option value=%s>%s", $PHP_SELF, $myrow['name'],"</option>");
-
- }
-
- ?>
-
- </select>
-
- <br>
-
- <input type="submit" value="SHOW by NAME">
-
- </form>
-
-
--------------------------
and in my p2.php I try to just display the variable "name"
$first = addslashes($_POST['name']);
printf("SELECT name FROM doctors where name='".$first."'\";");
-
- $first = addslashes($_POST['name']);
-
-
-
- printf("SELECT name FROM doctors where name='".$first."'\";");
-
-
I also tried printing it directly like
printf(.$_POST['name'].);
and nothing ...

PLEASE helppppp
Do I need to change anything for this to work in my php.ini file in the root folder??
Thanx for any suggestions
