Header redirect


Posted on 16th Feb 2014 07:03 pm by admin

Hello ive got a problem ive got form with its action set to itself.
Code: <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.
Code: if($error == ''){
Did you know?Explore Trending and Topic pages for more stories like this.
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?
No comments posted yet

Your Answer:

Login to answer
259 Like 38 Dislike
Previous forums Next forums
Other forums

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

Php navigation
I have four buttons on a php page.
If i click a button it will redirect to different php pages.

PayPal Redirect Issue
When I have my paypal button set so that is redirects to http://empiremarketing.ca/order.php,it work

Using cURL to PUT
Can somebody help with the correct php code to make a cURL PUT request. Here is a sample of code bel

how can i expire the submitted page using session.
hi,
i'm new to php world.
i'm using "post" method.
when i submit it,data goes to

Target costs on Process orders not calculating
Hi All,

We have released standard costs for all the materials. We have also done Goods r

Google Map
I have done Google Map Integration for one my project. But for that we need the "latitude and l

Getting the full city list from maxminds geoip database
I am suprised I can't find any references to this.

I have maxminds geoip lite installed and i

Floating Point Precision Loss
I'm writing a program to draw a three-dimensional cube (with a corner cut off) without using any 3D

Print 'a' to 'z' via for loop
A very simple problem..
How Can I print a to z NOT a to y ?
It is a part of a code where
<

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash