How can I change a variable in php using the URL (index.php?variable=answer)?

  • Thread starter Thread starter TommyTurner2007
  • Start date Start date
T

TommyTurner2007

Guest
Hello, I am trying to use the url of my website to change some code on my website. For example.

I have the following code:

<font size="4" face="Arial">Message Here</font>

But I want to be able to put something in the url like

webpage.php?message=MESSAGEIWANT

And then the code would change to:

<font size="4" face="Arial">MESSAGEIWANT<font>

I was told to use:

<font size="4" face="Arial"><?php echo $message></font>

But that isn't working. Do you know what I need to do?

Thank you very much :)
Thanks for that, but it returns:

Parse error: syntax error, unexpected '[', expecting ')' in /home/hostacul/public_html/youtube/test.php on line 4
 
Back
Top