Jump to content

inserting data in mysql db using php


mrjameer

Recommended Posts

hi,

iam making a website for school.on one web page,there are 2 radio buttons.1 is for science and one for computers.like this
subjects
1.science
2.computers

the user can click any of radiobutton and press submit button it will moves to the second web page.on that again i have 2 radiobuttons.1 for sing and one for music like this.
hobbies
1.sing
2.music.

here he clicks one radiobutton and press the submit button,then his choosen subject and hobbies should be stored in mysql table.i did all this.but here what i actually want to do is,if he selects only subject and ignore the hobbies then the subject should be stored in db.if ignore the subject and chooses the hobbies only then it should be stored in db.i used sessions to move data from one page to another.
i dont know how to do this.please any of your help is appreciated.

thanks
mrjameer
Link to comment
https://forums.phpfreaks.com/topic/31231-inserting-data-in-mysql-db-using-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.