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

Apple's revamped lineup arrives

I'm personally curious about the magic mouse.. a multi-touch concept sounds like it could be nea

Pre-Fill out a PHP form...??
This is for work actually (geek squad). We have to fill out this online php form at work over and ov

convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javasc

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

A WBS element with the name XXX already exists in version FREI_VERSION
Hi.
When I am trying to insert WBS element in a project, error occurs:

"A WBS eleme

Looking for help reading a .txt or .ini file and outputting the info.
I have a file called Info.ini and It has the following info:
Code: [General]
Online=0
I wou

PHP4 to PHP5 Conversion
Hi Everyone,

I am working on a site that is built up on PHP4 and each page is being started f

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

Lining up columns nicely.
Hello everyone, I'm having problems with making columns line up properly. Here is my code:

Find current logon time
Hi,
in my sql script i want to query and find out the logon time of the current session.
<

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