Set a request value on a link
Posted: Thu Dec 20, 2007 2:38 pm
feyd | Please use
However, this does not seem to work as the ?item value is not showing up on the newPage.php being called.
What is the proper way to set a request variable for the target page?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I am having issues with using the $_SESSION[...] as it is timing out. My app would work if I could do something like the following:Code: Select all
<?php
// This value may come from a database, or a $_REQUEST variable already
$itemVal = "Value Alpha";
// Set a link to call the new page with the $_REQUEST variable set for ?item
echo "<a href='newPage.php?item=".$itemVal."'>Go to new page</a>";
?>What is the proper way to set a request variable for the target page?
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]