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

Guixt issue
Hello all,

We are experiencing the following problem with Guixt:

Some transact

Get keys and values from an array
Hellow,

I have an array $Data with keys and values. With a foreach I can display all the valu

why does my session end?
my connect.php starts the session just so you know
i can navigate arround my site fine except whe

Sending CC Info by email
I am a little bit less knowledgable in the security area as most developers and I know I have a lot

mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts???

this is the code i got

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

column name cancatenation within PL/SQL
I have a PLSQL store procedure, and the following statement is part of a subquery
fname||lnam

Do something every fifth time?
I'm trying to write a loop, but I want it to do something different after every fifth instance. Like

bind error during socket programming
i am kinda new to socket programming. wrote the below code for a server. but getting the bind error

Must-Know Topics of PHP
Can you guys list the must-know topics of PHP. I am still a learner and I am trying to cover most of

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