I know I've seen the answer to this on tek-tips previously, but I haven't been able to find the post again.
I have a page (page1) that passes entered information to another page (page2) that updates a database. The variable I'm concerned with is $date. Page2 updates beautifully. Everything's good. I have a link on page2 to a summary page (page3) that needs that $date variable. How do I pass that variable from page2 to page3? This is what I've tried:
echo '<a href="summary.php?date=$date">Summary</a>';
echo '<a href="summary.php?date2=$date">Summary</a>';
echo '<a href="summary.php?$date">Summary</a>';
The first two give me the text "$date" instead of the date value. The third I know is garbage. Any input would be appreciated. Thanks, all.
I have a page (page1) that passes entered information to another page (page2) that updates a database. The variable I'm concerned with is $date. Page2 updates beautifully. Everything's good. I have a link on page2 to a summary page (page3) that needs that $date variable. How do I pass that variable from page2 to page3? This is what I've tried:
echo '<a href="summary.php?date=$date">Summary</a>';
echo '<a href="summary.php?date2=$date">Summary</a>';
echo '<a href="summary.php?$date">Summary</a>';
The first two give me the text "$date" instead of the date value. The third I know is garbage. Any input would be appreciated. Thanks, all.