Jump to content

Pass Variables between forms


cleme1q

Recommended Posts

Is there a way to take variables that are assigned in one form and pass them to another form, i.e. Can the value of $form1value be passed to form2 so when I click submit, that data is available to be passed to submit_data.php

 

<form name=x method=post>

 

$form1value=mysql_query(xyz);

 

</form>

 

<form name=form2 action=submit_data.php method=post>

question? <input type="radio" name="q1" value="Y" /> Yes <input type="radio" name="q1" value="N" /> No <input type="radio" name="q1" value="M" /> I'm not Sure<br><br>

<input type="submit"/>

 

 

Link to comment
https://forums.phpfreaks.com/topic/193278-pass-variables-between-forms/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.