note 78670 added to function.session-id
| From: | dnaicker at gmail dot com | Date: | Mon, 22 Oct 2007 20:33:01 +0000 |
| Subject: | note 78670 added to function.session-id | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131641@lists.php.net to get a copy of this message | ||
I was using session_id but i needed to send more than one variable across to another php page. I was
trying to create a link to an xml file and i needed to send the name of the file to another php
document to open the file using DOM or SimpleXML.
I sent the variable across in the hyperlink and gathered the variable using the
$_POST['$VarName'] command.
This is the code i used:
Page1:
echo"\t\t<td><a href=\"showArticle.php?file=".$title."\"
name=\"$title\">View Article</a></td>\n";
Page2:
$file = $_GET["file"];
----
Server IP: 69.147.83.197
Probable Submitter: 196.25.255.214
----
Manual Page -- http://www.php.net/manual/en/function.session-id.php
Edit -- https://master.php.net/note/edit/78670
Del: integrated -- https://master.php.net/note/delete/78670/integrated
Del: useless -- https://master.php.net/note/delete/78670/useless
Del: bad code -- https://master.php.net/note/delete/78670/bad+code
Del: spam -- https://master.php.net/note/delete/78670/spam
Del: non-english -- https://master.php.net/note/delete/78670/non-english
Del: in docs -- https://master.php.net/note/delete/78670/in+docs
Del: other reasons-- https://master.php.net/note/delete/78670
Reject -- https://master.php.net/note/reject/78670
Search -- https://master.php.net/manage/user-notes.php