Jump to content
Larry Ullman's Book Forums

silent-gwebchap

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by silent-gwebchap

  1. 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.

×
×
  • Create New...