Philip Tellis wrote:
Sometime Today, F cobbled together some glyphs to say:
"<input type="text", name="firstname" size =" 34">" this creates a variable "firstname" which can be collected for processing in a php script as $_POST["firstname"] , but along with this say I also want to sent the text "this is coming for form 1" how do I do that . I just can't generate a text
assuming you have 2 (or 3 or n) forms on your page, set the action accordingly:
<form method="get" action="myscript.php?form=1"> ... </form>
<form method="post" action="myscript.php?form=2"> ... </form> ...
in your script, check the value of $_GET['form'].
if (and only if) you need it to be secure and unpredictable, then use an md5 hash in each case instead of 1 and 2. You'll have to store the hash on the back end as well as change it for every call to the page.
Philip
Philip ,
Here is what my form post looks like <form name="1form"
onSubmit="return form_Validator(this)" mothod="post" action="test.php?who=itsmeheheheheheehe"> and my test.php is : echo $_GET['who']; yet I dont get any value for who on the page . Francis