How to submit data to mysqldb and to another from form submit?
Please give me example.
In PHP
From a Form two inputs with submit button.
After submit it must insert those data to mysql database and must be the target form must use those same variable values using post.
For inserting the data to mysql database must not be written in the target form. In middle can use any calling form.
You must understand the above scenario.
Thanks
Its urgent for me Please do help on this
How to submit data to mysqldb and to another from form submi
Moderator: General Moderators
Re: How to submit data to mysqldb and to another from form submi
Well this is what i understand from what you said.
1. you have a form that takes two inputs
2. The data once submitted must be inserted into a database.
Here are the things which are unclear..
3. This data is to be accessible by another target form??
If this is the case, use the variables that you got posted from the previous form
3. The data to be submitted to another form which has someother execution..
You have to use curl execution for this i think..
Just let us know the other part (after inserting into mysql )
1. you have a form that takes two inputs
2. The data once submitted must be inserted into a database.
Here are the things which are unclear..
3. This data is to be accessible by another target form??
If this is the case, use the variables that you got posted from the previous form
3. The data to be submitted to another form which has someother execution..
You have to use curl execution for this i think..
Just let us know the other part (after inserting into mysql )
Re: How to submit data to mysqldb and to another from form submi
1 Step is fine - > Form with two inputs. one submit form. enter --> one.page -action="two.page"
2 nd is fine --> then insert data to mysql. using function or any other way.
3 rd The new page must use the variables values.(Insertion to db function will be not be written in this new page).two.page
2 nd is fine --> then insert data to mysql. using function or any other way.
3 rd The new page must use the variables values.(Insertion to db function will be not be written in this new page).two.page
Re: How to submit data to mysqldb and to another from form submi
okay.. u need to use $_SESSION variables to access the variables in the third page.
Try and read in the lines of $_SESSION implementation.
else post the code here and will be able to assist you..
http://www.php.net/session
Try and read in the lines of $_SESSION implementation.
else post the code here and will be able to assist you..
http://www.php.net/session