Page 1 of 1
i cant understand this`
Posted: Mon Aug 25, 2003 3:02 pm
by phpcoder
What does it means if i have form tag like this one
<form name="myform" action="." method="post">
what does "." means in action plz help
Posted: Mon Aug 25, 2003 4:26 pm
by mcsleazycrisps
The form will send the input to the "default" script for that directory
so if you had "index.php" and "form.php" and "form.php" had a <form> with "." as the action, the form will be sent to "index.php"
this could be "index.html", "index.php" or whatever the default file is.
If that makes sense

Posted: Mon Aug 25, 2003 7:42 pm
by JAM
Well, if omitted, it will send it's $_POST back to the same page it was sendt from.
FooBar.php
<form method="post">
<input type="submit" value="Send it">
</form>
...will upon clicking it, send you back to FooBar.php.