Very elemental problem with PHP

[FONT=Verdana]


<form>
	<input name="uid" action="test.php" method="post">
	<input type="submit" value="send">
</form>

php:


[INDENT]<?php
[INDENT]// trying both, for testing.... 
echo $_REQUEST['uid'];
echo $_POST['uid'];[/INDENT]
?>[/INDENT]


after submitting form it doesn’t take me to test.php at all, it says in test.html, AND: what I put in text box shows up in query string, even though I’m sending the request as a post request…

what am I missing?

thank you…

[/FONT]

For testing, do a var_dump($_POST);

You’re declaring actino and method in the input rather than form. Also, let the browser know the input is text.


<form action ="test.php" method="post">
    <input name="uid" type="text">
    <input type="submit" value="send">
</form>

[FONT=Verdana]
never mind… I figured it out…

(why can’t you remove your own posts in Sitepoint? other forums allow you to do this…)

[/FONT]