Hi!
I have a form, where you can choose between 5 titles of books. Under it you have a submit button.
My question is:
how to make so, that when the customer has chosen a book and clicks on the submit button, the title of the book to be inserted(recorded) in a db table.
I suppose it should be smth connected with if clause and INSERT INTO , but i'm not sure for the syntax.
Thank you, very, very much for the help!!!
e_velkova
0
Newbie Poster
Recommended Answers
Jump to PostUse this code:
this code will execute after user clicks on the submit button.if($_SERVER['REQUEST_METHOD']=='POST') { mysql_query("insert query"); }
All 4 Replies
Shanti C
106
Posting Virtuoso
praveen_dusari
11
Posting Whiz in Training
e_velkova
0
Newbie Poster
jsrpatna
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.