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

Using Curl_multi for processing multiple URLs
Hi,

I am at a loss as to how to implement this. I would like to be able to automatically assi

Automatically Detect Phone Model for WAP Jar Deployment
Making a wap site is fairly simple, but I'd like to know if there's a way to make it so that the wap

Undefined offset when using a flat file with pipe symbols
Hi, I've got a flat file/text file which I'm currently using as a member database for my site (not a

shoping cart issues
i´ve wrote this and works when i add an item to, my cart, but when i want to add othrer item just

Typedef struct vs just struct
Anyone know the rationale for using typedef for structs when a struct is itself a typedef? I have s

php include email form with attachment
I have had no luck with finding a email form all over the Internet for various reasons. Some insecur

Secure pages Sessions vs. Cookies & session_destroy() help
Im new here and new to PHP, I hope you can help me with some questions.

Im writing my web ap

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

$GPRMC and NMEA how to extract from report
Hi There,

Im a little bi lost and not sure where to start with this one, ive got a small gps

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

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