Is there an easy way to post a form to the same page.
I currently have an HTML (/javascript) page with a number of selection forms. I want to then display certin HTML below below based upon the users selection.

Many Thanks,

It is quite easy in PHP. You set form action to the same page and then first check wheter $_GET (or $_POST if method is post) array contain any submited values. The values that exist can be used for the HTML you wish to display below. An example:

if(isset($_GET['select1'])) {
    $HtmlBelow = $_GET['select1'];
}

Note that select element has attribute name="select1". You also have to take care of filtering the data passed from the form.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.