Forum Moderators: coopster

Message Too Old, No Replies

passing values from forms to mysql

         

chrisa_dr

9:25 am on Jan 21, 2006 (gmt 0)

10+ Year Member



I have two HTML files both with forms and i would like the entries of both of these forms to go into one single entry in mysql (that means that i would like theme both to go to the same row of the table).Has anyone have any idea on how to do this?

dreamcatcher

10:38 am on Jan 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World chrisa_dr :)

You could assign a unique id for that row and then update the db based on that id. Pass the id in an hidden form variable.

db

chrisa_dr

3:11 pm on Jan 23, 2006 (gmt 0)

10+ Year Member



I guess you mean that i would have to create a new form element that would not be shown in my page. How can i maintain the value of this element? My two forms have seperate php files. Can i use a variable from one php file and access it in annother php file?