Jump to content

Header redirect


gum1982

Recommended Posts

 

Hello ive got a problem ive got form with its action set to itself.

<form id="formID" class="formular" method="post" action=""/>

 

it then runs through validation and if their are no errors it the runs a header redirect.

 if($error == ''){
             header('location: http://example.com/test.php);
       }
}

 

The problem im having is it doesnt pass through all the form variables to the next page like firstname lastname email etc.

 

If i set the forms action to test.php it sends them all fine can someone please tell me a workaround when using a header redirect?

Link to comment
https://forums.phpfreaks.com/topic/181129-header-redirect/
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.