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: ReplyQuote
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: ReplyQuote


Sorry, only registered users may post in this forum.