Jump to content

[SOLVED] Can I dynamically change and display a variable when a user clicks a button?


lifeson2112

Recommended Posts

I need help finding out how to change a variable when a user clicks certain links. the change in variable also has to be displayed dynamically. is this possible? I'm extremely new to PHP, so any help would be greatly appreciated. :)

here's a sample of my retarded code so you can kinda get an idea of what I'm trying to do:

 

<?php $siteValue = "not entered"; ?>

 

  <a href ="#" onClick="<?php $siteValue = "http://www.google.com";  ?>">

  click here</a>

  <?php include( $siteValue); ?>

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.