WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
passing variables from page to php
Posted by:
drabslab
(---.187-65-87.adsl-dyn.isp.belgacom.be)
Date: October 29, 2006 05:39PM
Hai,
I have just installed wamp5. It is the first time that i work with a wamp version.
For testing I made a page looking like
<?php
echo "testpage";
$action=$incoming;
echo $action;
?>
then I have typed in my browser:
index.php?incoming=100
The only thing that I get on the screen is the first echo: testpage which actually confirms that php an apache are functioning.
But what am i doing wrong that the variable is not passed?
Options:
Reply
•
Quote
Re: passing variables from page to php
Posted by:
CyberSpatium
(71.237.217.---)
Date: October 30, 2006 10:53PM
change to
<?php
echo "testpage";
$action=$_POST['incoming'];
echo $action;
?>
CyberSpatium
WAMP English Forum Administrator
Options:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login