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
https://forums.phpfreaks.com/topic/92414-auto-submit-form-php/
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
https://forums.phpfreaks.com/topic/92414-auto-submit-form-php/#findComment-473532
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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