i am a real noob in php
i have a php url say http://xxxxxx.php?chat=
if i give zzz at the end of the url like this http://xxxxxx.php?chat=zzz
the output is yyy
i want a script to get the zzz from another script using $_REQUEST
and the final output of the script should be yyy

i tried this but it didnt work
<?php echo http://xxxxxxxxx.php?chat=$_REQUEST; ?>

Basically the way that it works is everything after the ? is a set of key-value pairs. So, if you need to find $_REQUEST["msg"] you need the URL to read http://xxxxx.php?msg=zzz

Hope this helps,
darkagn

i got it solved
the format should be

<?php 
header('Location: http://xxxxxxx.php?chat='.$_REQUEST['msg'].'');
?>

simple :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.