Jump to content

DavidD95

New Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by DavidD95

  1. Hello everyone! I'm a web design student who's trying to learn some PHP, JavaScript and stuff! You'll probably find me asking more questions than helping people, apologies in advance!
  2. Apologies for this because it's probably very simple, but I've never worked with JavaScript or PHP or anything before. So the website I am producing is to sell tickets for something. To purchase these tickets the user is required to click on the seats they want and it will pop up in a box on the left hand side confirming their seat selection and how much the ticket is. The website has to feature a "Reset Database" button which totally resets everything. No tickets are selected anymore, the user is logged out etc. I have this working fine. It also has to feature a "Cancel" button, which simply removes the seats the user has selected, but still keeps them logged in. How do I code this? This is what the "Cancel" button looks like on the Index page: <div id="theButtons"> <input type="button" value="Cancel Choices" title="Cancel Choices" onclick="cancel()" /> </div> And this is my code on the JavaScript page: function cancel(){ var s = document.getElementsByTagName('space'); window.location="index.php"; } How do I get this working?
×
×
  • 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.