eddy556 Posted November 28, 2006 Share Posted November 28, 2006 Hi, I have created a website where a table is displayed to the user that shows the contents of a database, each item that is shown from the database has a checkbox and a quantity box labled checkbox1 checkbox 2 ect ect and the same with the quantity boxes.When the user clicks submit only the items the user chose are displayed, I am using POST to sent the checkboxes and quantities.On the next page however I want this data to be shown again, exactly the same....however becuase it was posted it is not avaible on the third page, I have attempted to set each post as a session variable on the second page but i cannot get this to work...What other ways are there to send variables, is it possible to make POST send to two pages at once?Thanks Link to comment https://forums.phpfreaks.com/topic/28741-passing-variables-between-pages/ Share on other sites More sharing options...
AbydosGater Posted November 28, 2006 Share Posted November 28, 2006 You could use GET..$myvar = $_POST['myvar'];and set a HREF to http://mylink.com/file.php?myvar=$myvar.Or you could use sessions...Or you could use cookies..Many ways to do this Link to comment https://forums.phpfreaks.com/topic/28741-passing-variables-between-pages/#findComment-131555 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.