Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

When someone goes to the form via http I need the form to go to https

Status
Not open for further replies.

olchik

Programmer
Jan 6, 2006
93
US
Hello,

Please help. The acctual link should start from http, but once clicked it should go to I have no idea how to do it:-(

Thank you
 
Thank you for your response, but you didn't understand me
It's a link to feedback form that sits on many pages on our web site. It is now It needs to be changed to on all the pages, but when clicked on that link it should still be redirected to It's not about action it's about link itself.

Thank you
Olchik
 
why does it need to get changed back to http:// ? you want to link to a secure file but do not want to use https in the link- i think you would have to link to another file like redirect.cfm which would send to a secure file

<a href="
then on that cflocate to the ssl side

but for the life of me i cannot see why you would want to.

=========================================
Don't sweat the petty things and don't pet the sweaty things.
 
checking the cgi variable will work unless you have security requiring SSL in the directory the feedback page is in. if that is the case you will have to setup a redirect.

=========================================
Don't sweat the petty things and don't pet the sweaty things.
 
imstillatwork

I tried it, but for some reason it didn't catch http or https part...I used CGI.Sever_name If you know CGI variable that will catch this I would appreciate if you tell me.

NorthStarDA
That's not me who wants to do it. Don't ask me why, but I work in different department(New Media). Big part of web site is managed by IT. I was the one who wrote the form, but they put links to it on web site. And they just told me they need link that starts from http, but the form itself should remain on secure server. They already have something like this with another form, but apparently they don't want to tell me how did they do it. They want me to do it by myself.
 
cfdump = "#cgi#"

and see what you have to play with...

IT does not always know whats going on with web based technology when they are so into desktop apps.


Kevin

Phase 1: Read the CFML Reference
Phase 2: ???
Phase 3: Profit!
 
Thank you imstillatwork

I will try tomorrow.
Our IT has 5 programmers in there...pretty strong programmers. I am sure they know what they are doing... The only thing that surprises me is that they aren't willing to help. When I asked to look at the source code to see how they did it, they asked me what I tried to do...
I hope tomorrow I would be able to see the code...though I am already sorry I asked.
 
the variable you need to check is cgi.https, the value will be on or off. there are others that you can check as well like cgi.server_protocol.

=========================================
Don't sweat the petty things and don't pet the sweaty things.
 
Thank yuo guys! I got it.

CGI.https worked perfectly

Thanks again
Olchik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top