How to jump from secure site to nonsecure?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

How to jump from secure site to nonsecure?

Post by ljCharlie »

I have a .shtml form that is on a secure site. When a user submit the online form that is on a secure server, I got an error on the .php form success page. I contacted the webserver staff and they said they couldn't get PHP to work on their secure server site. Now here's my question, is there a way to program my form page so when the user click submit, the PHP form success page is launched from the un-secure site? For example, here's the online form:

https://www.myDomain.com:481/mySite/onlineForm.shtml

Now, when the user click the submit button on this form, it is automatically goes to:

https://www.myDomain.com:481/mySite/onl ... Sucess.php

So, here's what I want. When the user click the submit button, is there a way to redirect to something like this:

http://www.myDomain.com/mySite/onlineFormSucess.php

Is this possible?

ljCharlie
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

In the form declaration, just declare the action as "http://www.myDomain.com/mySite/onlineFormSucess.php"
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

Thanks for responding. I tried that and it doesn't work. I mean the page does show up but the PHP mail() does not get executed.

ljCharlie
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Does that insecure page get the appropriate POST variables? Is sendmail setup on that other server?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
ljCharlie
Forum Contributor
Posts: 289
Joined: Wed May 19, 2004 8:23 am

Post by ljCharlie »

I decided to not do this now because that means the transaction is no longer secure.

Thanks!

ljCharlie
Post Reply