Jump to content

passing through form variables


dcorner

Recommended Posts

How do I get a form field variable in a php string. Even though form is submitted through POST method I want to pass through the variables in the form input ("fields_email" and "fields_fname") in the URL to the redirecting page.

 

<form method=post action="https://app.icontact....." name="icpsignup" id="icpsignup1111" accept-charset="UTF-8" onsubmit="return verifyRequired1111();" >
<input type=hidden name=redirect value="domain/passthroughtest2.php?email=<?php echo $fields_email;?>&fname=<?php echo $fields_fname;?>" />

        <input type=text name="fields_email">
        <input type=text name="fields_fname">
        <input type="submit" name="Submit" value="Submit"></td>

 

 

Cheers,

David

Link to comment
https://forums.phpfreaks.com/topic/189497-passing-through-form-variables/
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.