Mit Chauhan
New member
JAI MATADI all ..
i m trying to make querystring in my php webpages called as
1) "page1.php"
2)"result page.php"
but m not able to make it .. here is my code . .
------------------------------------
page1.php
----------------
<?php
$u = "mit";
echo "<a href='result page.php?user=$u'>User</a>";
?>
------------------------------------
------------------------------------
result page.php
----------------
<?php
$user = $_REQUEST["u"];
echo $user;
echo $_REQUEST["u"];
?>
------------------------------------
m able to see the "user=mit" in my addressbar .. but not able to see the results in my webpage . . tell me php masters what m doing wrong here ..
thank you ..
i have tried this also
-------------------
echo $_GET["u"];
-------------------
still not working
i m trying to make querystring in my php webpages called as
1) "page1.php"
2)"result page.php"
but m not able to make it .. here is my code . .
------------------------------------
page1.php
----------------
<?php
$u = "mit";
echo "<a href='result page.php?user=$u'>User</a>";
?>
------------------------------------
------------------------------------
result page.php
----------------
<?php
$user = $_REQUEST["u"];
echo $user;
echo $_REQUEST["u"];
?>
------------------------------------
m able to see the "user=mit" in my addressbar .. but not able to see the results in my webpage . . tell me php masters what m doing wrong here ..
thank you ..
i have tried this also
-------------------
echo $_GET["u"];
-------------------
still not working
