Need a form to insert data to mysql db

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
pha3dr0n
Forum Newbie
Posts: 9
Joined: Mon Sep 02, 2002 9:12 am

Need a form to insert data to mysql db

Post 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
Post Reply