note 78670 deleted from function.session-id by peehaa
| From: | peehaa@php.net | Date: | Thu, 23 Apr 2015 10:21:27 +0000 |
| Subject: | note 78670 deleted from function.session-id by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202354@lists.php.net to get a copy of this message | ||
Note Submitter: dnaicker at gmail dot com
----
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"];