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

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

How to submit a form to the same page?
I have a table containing information about books in my library and this table has the following col

Creating an invoice
Using fpdf I am trying to create an invoice to send to clients. The products are sold in pricing tie

problem when runing a funciton
I am trying to connect to database using a funciton in a functions.php

<?php
funct

Taking an HTML form and a PHP program and making it into one working file.
Hello,

So I would like to display everything INSIDE a specific directory. In other words, I

php calculate
this code echoes correctly the sum but the inserted result is 0??
Code: <?php
$TotalNum

Vertical Alligning - Not working in 1 cell?
<?php

echo "<table id="valign" width="60%" style=

Gerenate tabel in Php
I whant to generate a tabel takeing data from database like this one so the results to be display on

Namespace Problem
I'm having problem with a section of code with a variable namespace.

This code works fine:

php problem?
I don't think I'm stupid, but maybe I am.

I am working on a sit for a friend I am try to put

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