Re: [PHP-DB] Getting data from a page which isn't a form
If you have a form on your confirm page, with no text fields, just the submit button, you can use hidden fields in the form to pass the variables on. --Janet - Original Message - From: "Kim Kohen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 28, 2002 6:27 PM Subject: [PHP-DB] Getting data from a page which isn't a form > Hi all, > > I'm using PHP to retrieve data from a form and pass it to a 'confirm' page. > > Here the data is echoed and the user presses a 'confirm' button to finally > mail the information to us. This page is a basic html page (confirm.html) > with some inline php which displays the relevant information. At the bottom > there is a form 'confirm' button which has the action set to 'confirm.php' > > Confirm.php simply emails the data. > > The problem is that the variables are not getting passed to the confirm.php > page - presumedly because they are not part of a valid form (confirm.html > contains no form fields, just the 'confirm' button) > > I know the variables are all valid as I can echo them fine on the > confirm.html page - I just don't know how to pass them onto the new page > when they're not part of a form. > > Any assistance would be greatly appreciated. > > Cheers and thanks > > kim > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Getting data from a page which isn't a form
Hi all, I'm using PHP to retrieve data from a form and pass it to a 'confirm' page. Here the data is echoed and the user presses a 'confirm' button to finally mail the information to us. This page is a basic html page (confirm.html) with some inline php which displays the relevant information. At the bottom there is a form 'confirm' button which has the action set to 'confirm.php' Confirm.php simply emails the data. The problem is that the variables are not getting passed to the confirm.php page - presumedly because they are not part of a valid form (confirm.html contains no form fields, just the 'confirm' button) I know the variables are all valid as I can echo them fine on the confirm.html page - I just don't know how to pass them onto the new page when they're not part of a form. BTW, I have looked at Hidden fields but can't work out how to pass a php variable to the 'value' attribute. Any assistance would be greatly appreciated. Cheers and thanks kim -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] Getting data from a page which isn't a form
On Monday 29 April 2002 09:27, Kim Kohen wrote: > Hi all, > > I'm using PHP to retrieve data from a form and pass it to a 'confirm' page. > > Here the data is echoed and the user presses a 'confirm' button to finally > mail the information to us. This page is a basic html page (confirm.html) > with some inline php which displays the relevant information. At the bottom > there is a form 'confirm' button which has the action set to 'confirm.php' > > Confirm.php simply emails the data. > > The problem is that the variables are not getting passed to the > confirm.php page - presumedly because they are not part of a valid form > (confirm.html contains no form fields, just the 'confirm' button) > > I know the variables are all valid as I can echo them fine on the > confirm.html page - I just don't know how to pass them onto the new page > when they're not part of a form. Either store them in a session, or /make/ them a part of a form. That is, store your variables as hidden elements. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Honi soit qui mal y pense. [Evil to him who evil thinks.] -- Motto of the Order of the Garter (est. Edward III) */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] Getting data from a page which isn't a form
Hi all, I'm using PHP to retrieve data from a form and pass it to a 'confirm' page. Here the data is echoed and the user presses a 'confirm' button to finally mail the information to us. This page is a basic html page (confirm.html) with some inline php which displays the relevant information. At the bottom there is a form 'confirm' button which has the action set to 'confirm.php' Confirm.php simply emails the data. The problem is that the variables are not getting passed to the confirm.php page - presumedly because they are not part of a valid form (confirm.html contains no form fields, just the 'confirm' button) I know the variables are all valid as I can echo them fine on the confirm.html page - I just don't know how to pass them onto the new page when they're not part of a form. Any assistance would be greatly appreciated. Cheers and thanks kim -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php