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

newbie question about multiple queries
hi everyone,
I'm sorry to ask such a basic question, but I'm young and trying to learn php on my

problem with script manager
Hi iam using Net.2005.I have created ajax enabledwebsite.i have master page in which i have script m

Contents of variable not echoing
Hey guys, hopefully this is an easy one...

In this line, the variables are not echoing out. T

PHP Function Page Advice
Hi All, I am quite new to PHP and Javascript but have written an Online Shop (Mainly for Fun and edu

Preventing SQL Injection
I have a question about SQL Injection, In some of our code we use this: view plaincopy to clipboa

Revoking alter any table from a schema
Hi All,

i am working in Oracle 10g.
my requirement is to revoke all kind of DDL oper

URL Rewrite issue
Im created a series of Rewrites and on page checks to make sure the correct url is being called. But

MySQL issue
I am taking sentences through a form on page. Then checking some condition and trying to insert them

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

Check Date/Time in PHP
What I need the code to check is that $reQuest is 24 hours in the past then return a time based on h

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