Jump to content

echo $variable


johnwayne77

Recommended Posts

Do you want to create a url with the value of the variable in it

<?php
$url = 'www.example.com/b.php?var=' . $var;
?>

Or do you want to get the value from the URL?

http://www.example.com/b.php?var=value

the in the script

<?php
$var = $_GET['var'];
echo $var;
?>

 

Ken

Link to comment
https://forums.phpfreaks.com/topic/48765-echo-variable/#findComment-239297
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.