kodr
Programmer
- Dec 4, 2003
- 368
I know there's a lot of information out there, but I'm just not making sense of this.
I've got a server using php 5.1.6, and register_globals is off by default. Cool.
If I'm understanding everything correctly, I should be retrieving my variables using $_POST.
Is this correct?
With my test set up, I can pass username to a following php script with:
This doesn't seem to be working for me. Any ideas? Right now, I've gone in an turned register_globals=on, but I'd rather have it done right at this stage.
Thanks.
I've got a server using php 5.1.6, and register_globals is off by default. Cool.
If I'm understanding everything correctly, I should be retrieving my variables using $_POST.
Code:
$user_name = $_POST["username"];
Is this correct?
With my test set up, I can pass username to a following php script with:
Code:
echo '<form action="on_callv2.php" method="post">';
echo '<input type="hidden" name="username" value="'.$user_name.'">';
echo '<select name="tech">';
..........
echo '</select>';
echo '<br><br><input type="submit" value="Submit">';
echo '</form>';
This doesn't seem to be working for me. Any ideas? Right now, I've gone in an turned register_globals=on, but I'd rather have it done right at this stage.
Thanks.