Forum Moderators: coopster

Message Too Old, No Replies

posting form data without the form

POST data appended to after submission then resent with user on backend

         

phazei

3:54 am on Jul 8, 2006 (gmt 0)

10+ Year Member



I need to add some post data to a form after it's been submitted. I don't want to put the data as a hidden input field because I want it to be kept server side.
So when the user clicks submit the form will be submited to another page on my site, new data will be added, $_POST['secretkey']=#*$!xx and then the user will be forwarded to the new page and the $_POST data along with him.

I found this:
[zend.com...]

But it only forwards the $_POST and not the user along with.

If I use header(location:) along with that the user is taken to the new page but the $_POST data is sent seperately.

Help please,
Adam

phazei

4:48 am on Jul 8, 2006 (gmt 0)

10+ Year Member



Sigh, after much more googling I found this:

[webmasterworld.com...]

Which I believe I'm trying to do.

The page is need to forward to with the post data is a credit card portal so the data must be posted. My client refuses to get a SSL certificate.

I'm thinking I'll need to stick with a hidden input field.

coopster

6:59 pm on Jul 8, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, phazei.

If your user clicks submit, you bring them to your processing page. On that page you are ... doing what? Processing the data and then redirecting the user?

phazei

8:08 am on Jul 10, 2006 (gmt 0)

10+ Year Member



They click submit to be sent to the credit card processing page that's on the credit card gateways server. I wanted to intercept that as seamlessly as possible and insert the loginID that I need to send to the credit card gateways server. I didn't want the loginID shown in the source as a hidden field. The loginID is only half of what's needed for the credit card gateway to work, the other half is a transaction key, which is encrypted anyway. It's not all that bad that the loginID is in the code, I just wanted a little more security with it. I got it working with a hidden field.

thanks
adam