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


Posted on 16th Feb 2014 07:03 pm 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'

Did you know?Explore Trending and Topic pages for more stories like this.
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
No comments posted yet

Your Answer:

Login to answer
58 Like 37 Dislike
Previous forums Next forums
Other forums

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Allowing ' and "
Hello everyone,

I am creating a form where users submit information to go into a database. I

php code generators
All

Whilst enjoying learning a new language i have come accross a number of free code generat

$_POST variable un-useable
I'm trying to use a $_POST variable in a mysql update statement but i can't use it for some unknown

why does my session end?
my connect.php starts the session just so you know
i can navigate arround my site fine except whe

Hom to make one url to open together with another url
I have a chat, which i want to be opened, as soon as the users login to the site. As it is now, when

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

Simple MySQL query...
Hello,
How could I do a mysql query that does this: SELECT * WHERE date/time < 5minutes ag

SESSION CHECK WORKS "MOST" of the time... whats going on?
i have a sign in check thats included in every page that is a members only page which is basically a

Problem!
I have another problem, when i run this code i get this error "Parse error: syntax error, unexp

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash