Forum Moderators: coopster
all i really need to do is: pass the data from the form to a database using a cgi script {can this be done?}. i kind of fumbled my way around and created the database with the (8 total) fields i'll need. the hosting co has php myadmin no asp supported. (apache server i think)
I'm reading about php, sql etc & getting lost (i'm more of a networking kind of guy).
ANY insight or help would be greatly appreciated.
{can this be done?}
well of course it can
Welcome to WebmasterWorld jbilansky,
so a little MySQL, have you looked through these pages?
PHP MySQL Functions [ca.php.net]
here are the actions we need the script to perform
1. connect to mysql
2. select the database we are using (not always necessary)
3. make the data safe fro mysql insert
4. build the insert query to send
5. send the insert query
6. tell the user thank you very much
I know it can be a little overwhelming to start but look at these functions on the page linked to above
1. mysql_connect
2. mysql_select_db
3. mysql_escape_string
4. this can be done in a string, concatenate the values together and use them in the fllowing function
5. mysql_query (used for nay queries you send - insert, update, select, delete etc)
6. header [ca.php.net]
simple?
no asp supported
probably better that way ;)