Quote:
Originally Posted by j0hnb
How would I make it so that when a person click on a link it will print out a set statement within the same page.... Like a if statement that is activated once the link is clicked. I'm new to php so i'm sorry if this is a stupid question. Thanks
|
That's not really a PHP question, if you want to change the page contents dynamically (ie, without the user leaving the page), you'll want to look into JavaScript and the DOM API - it's too large a topic to squeeze into a post, but a bit of googling will get you started.
Also, the XMLHttpRequest library opens up a whole new world of website interactivity, but you'll probably want to get a good handle on the basics first.