Add info from a table to an existing HTML page.

I have a nationally approved basic boating safety course at http://boatsafe.com. I want to be able to have new students select the state in which they boat and save that as a variable.

Once I have the variable I want to query a table that has state specific information. For example lifejacket wearing requirements. Then when the student gets to the existing page which has the federal regulations dealing with lifejackets, I want to use PHP to insert the information for the students state that may be different than federal requirements.

$query= "select * form state_table where state='".$HTTP_POST["state"]."' and product_name='lifejackets'";

"Then when the student gets to the existing page which has the federal regulations
dealing with lifejackets, I want to use PHP to insert the information for the students state that may
be different than federal requirements."

cannot understand this part.. please clarify it with a detailed example.

It's time to clean up this topic area and that means taking care of this question. Your options at this point are:

1. Award points to the Expert who provided an answer, or who helped you most. Do this by clicking on the "Accept Comment as Answer" button that lies above and to the right of the appropriate expert's name.

2. PAQ the question because the information might be useful to others, but was not useful to you. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

3. Ask Community Support to help split points between participating experts. Just comment here with details.

4. Delete the question because it is of no value to you or to anyone else. To use this option, you must state why the question is no longer useful to you, and the experts need to let me know if they feel that you're being unfair.

If you elect for option 2, 3 or 4, just post comment with details here and I'll take it from there. We also request that you review any other open questions you might have and update/close them. Display all your question history from your Member Profile to view details.

PLEASE DO NOT AWARD THE POINTS TO ME.

____________________________________________

Hi Experts:

In the event that the Asker does not respond, I would very much appreciate your opinions as to which Expert ought to receive points (if any) as a result of this question. Likewise, you can also suggest that I PAQ or delete the question.

Experts, please do not add further "answer" information to this question. I will be back in about one week to finalize this question.

Both Easy and Powerful
How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php) Very easy. It has been described as "a programming language even my grandmother can use."
How powerful is PHP? http://en.wikiped…

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …

The viewer will learn how to create a basic form using some HTML5 and PHP for later processing.
Set up your basic HTML file. Open your form tag and set the method and action attributes.:
(CODE)
Set up your first few inputs one for the name and …