Jump to content

[SOLVED] Call file with variable


carbide20

Recommended Posts

Hi,

 

I'm new to php - basically I'm trying to call a php file and pass it a variable.

 

like if this was test.php:

 

$var1;

echo $var1;

 

 

and I was trying to call that in an html file somewhat like this and pass it $var1:

 

<a href="test.php?$var1='hello'>pass hello to test.php</a>

 

 

 

how might I go about doing that?

 

Link to comment
https://forums.phpfreaks.com/topic/81960-solved-call-file-with-variable/
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.