PHP code needed to get/post form fields and request mysql query results.

Posted on 16th Feb 2014 by admin

I'm new to PHP

I've created an html form to allow the user to request a basic telephone directory listing. They can select their 'listtype' by 'all' or by 'state'. If they choose 'state' then they must select a state from the dropdown menu - the state values are normal abbreviations. IE: 'AL'

In my php page I need to gather the users selection and retrieve the specific data from a table named 'contacts' then display it in a table sorted by last name.

Attached is what I've gotten so far. I had to attach the html in as a txt file since it wasn't allowed.

Thanks so much

Other forums