Jump to content

Auto Submit Form PHP


behzad

Recommended Posts

Hi there guys

 

I have a website that I had created while ago. The site at one point jumps from non secure side to secure side, in transition the page will pass some form data with a help of JavaScript to automatically submit form.

 

The client now has some issues with site, telling me some of his clients can not complete the pages and he like to change the JavaScript to php.

 

The problem was the non secure side of the site (http) is not on the same place as the (https) therefore the session variables where impossible.

 

I am thinking if there is a way of instead of using JavaScript use php to auto redirect.

 

I appreciate any help

 

Link to comment
Share on other sites

Thanks,

 

I have all the variable values in the database.

 

Like This:

I save all variables and data in the DB and reference them with a variable "x" for retrieval.

I sent "x" as post to https url address => url get the "x" value retrieves the exact data from DB => outputs all the info I put into it when I was in http session.

Now remember the sessions are not the same on http and https (they are like two different machine I don't no)

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.