Jump to content

Recommended Posts

Hello, I am a novice programmer and need help for a class assignment. Basically I have to export html form information to process in php, this I have no problems with. For extra credit I must also use a picture of a plane to allow users to click which seats they would like to purchase tickets for. I'm looking for a way to export the clicked hotspot into a variable to use with the php processing file or something similar.. Any help would be greatly appreciated. I don't know how things are preferred on this forum so I will attach my files as they are slightly long. Burleyson_Program5 is the html form, processform is obviously the php processing, plane.php is where I was trying to export form to include hotspot clicked..  :'(

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/208066-exporting-html-form-and-hotspot-map/
Share on other sites

a way to export the clicked hotspot into a variable to use with the php processing file

 

Each <area tag has a href="..." attribute. Just use a GET parameter ?seat=some_value on the end of each URL in the href to tell you which one was clicked on.

 

The value would be available as $_GET['seat']

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.