Page 1 of 1

Need a form to insert data to mysql db

Posted: Sun Feb 08, 2004 7:06 pm
by pha3dr0n
I've been struggling with this for 2 weeks now, and am getting nowhere, so I'll just lay out exactly what I have and what I need.

My db (admin_contyacts) has the following fields:

name (text)
address1 to address4 (text)
postcode (text)
telephone (test)
position (enum - board, committee, management, staff)
details (large text area)

What I need is a form in a web page that will allow the user to enter the relevant data (being able to choose the position from a list). When they click the submit button, the data will be added to the db, and the page itself will refresh to allow more data to be entered.

I have got nowhere at all with either the form, or the php script to add the data to the db.

Can anybody help me with this??

Cheers,

Pha3dr0n