silent-gwebchap
-
Posts
2 -
Joined
-
Last visited
Posts posted by silent-gwebchap
-
-
Hi Guys
Im new to the forum and came across this post which has helped me get over a problem I was having.
I used the code that rob suggested which was great, as follows:
$name = 'Billy';
header('Location: success.php?name=' . $name);However, I require to pass multiple fields to the success page, any help on this would be great.
Just a breif history of what Im trying to do is as follows:
I have a php booking form which needs to be emailed, written to text file as a backup if emails are lost and then pass several fields to the success page which in this instance is a romancart shopping cart.
I have been trying the following to no avail:
header('Location: http://www.romancart.com/cart.asp?storeid='. $storeid, 'price='. $price,'tax='. $tax);
It throws up an error Warning: header() expects parameter 3 to be long, string given in /home/productf/public_html/mailtest.php on line 44
It is also worth noting that I am a novice in this sort of code.
Passing Field Data To Success Form
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
That's great HartleySan, it worked :-D, I was playing about with & but had it in the wrong place.
Thanks for the help and quick respose, I'm on a tight deadline.