Noob form data question
Posted: Fri Jul 17, 2009 5:10 am
Hi sorry can't find the answers because my search terms are "get" "post" and "http" which returns the entire internet.
I've done plenty with forms when the action is a relative path. I'm trying to use an absolute path and it's breaking.
So I send 2 fields to a php page
...
If I use a relative path it works. If I use an absolute path then there's no entries in $_POST..?
Also when I changed to GET only the first entry is there because of the urlencoding i think (&)
I've done plenty with forms when the action is a relative path. I'm trying to use an absolute path and it's breaking.
So I send 2 fields to a php page
Code: Select all
<form method="POST" action="http://www.blahblah.com/test/recieve_form.php">
<input type="hidden" name="tagsField" id="tagsField" value="originalvalue" />
<input type="text" name="textField" />
<input type="submit" />
</form>
Code: Select all
<?php
echo $_POST['tagsField'] . "<br />";
echo $_POST['textField'];
?>
Also when I changed to GET only the first entry is there because of the urlencoding i think (&)