Hello everyone. I have a script that shows a form for a user to fill out. If any fields are left empty, the form is redisplayed with an error message and a prompt to fill in the field. If all fields are filled in, the user is taken to another page to confirm the information entered.
I am using a variable called $form_block to hold the contents of the form and I echo "$form_block"; to display the form. Here is what $for_block is equal to:
$form_block = "
<FORM method=\"POST\" action=\"$PHP_SELF\">
<P>Your Name:<br>
<INPUT type=\"text\" name=\"sender_name\"
value=\"$sender_name\" size=30></p>
<P>Your E-Mail Address:<br>
<INPUT type=\"text\" name=\"sender_email\"
value=\"$sender_email\" size=30></p>
<P>Your Message:<br>
<textarea name=\"message\" cols=30
rows=5>$message</textarea>
</p>
<INPUT type=\"hidden\" name=\"op\" value=\"ds\">
<P><INPUT type=\"submit\" value=\"Send This Form\"></p>
</FORM>";
My question is.... can I pass a variable inside a variable to another script?
example: can I pass $sender_name from $form_block to another php script?
Thank you
Gary