I have a form on my web page that has a link at the bottom which opens a summary page. my goal is to display the data from the form on the summary page.
The code below somewhat works but when the link is clicked nothing displays on the summary page. when the button is clicked it cleares the data on the form, what to leave the data in the form fields.
I believe the issue has something to do with the code on the summary page, as all the values are transfered to the adress bar when the submit button is clicked
Any help is great
the below code it attached to the bottom of the form
// form code <form id="horizontalForm" name="ded" method="POST"> <input id="submit" type="submit" value="Calculate" onclick="compute(this.form)" /> //------------ <? echo "<a href='testpage.php?data=", serialize($_POST), "'>Summary</a>"; ?>
code attached to the summary page
<? $data = $_Get["data"]; $values = unserialize($data); //$values has all the posted info from the previous page, in array form //$eiLastDate = $values["eiLastDate"]; //$values["y"] //etc... echo $values["eiLastDate"]; ?>