470,810 Members | 1,152 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,810 developers. It's quick & easy.

Switching to and from http and https

hello all.
currently, this is how a line of my form is setup
(names have been changed to protect the innocent ;)

<form action="/modules.php?name=buyme&file=index&func=gimmecash"
method="post">
which would of course pass it to the file on my normal http site
(http://www.mydomain.com).

if i wanted this form to pass to my secure site, ie.
https://www.mydomain.com, is there
a way to do this without making the form action this:

<form
action="https://www.mydomain.com/modules.php?name=buyme&file=index&func=gimm
ecash" method="post">

i have no problem "hardcoding" the site in there, but if there was a more,
correct, acceptable way ?
thanks.
Jul 16 '05 #1
1 20640
fartsniff wrote:
a way to do this without making the form action this:

<form action="https://www.mydomain.com/modules.php?name=buyme&file=index&func=gimm ecash" method="post">

No, there is no other way, but you might want to consider having people fill
out the form on your secure site rather than just posting the form to it.
You and I know that thier details are secure as long as it's posted to the
secure site but when Joe Bloggs is filling out the form they like to see
the reassuring little padlock/key there already.

--
James Sleeman
Gogo:Code http://www.gogo.co.nz/
Email domain : gogo.co.nz see user in from header!
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Kenneth Keeley | last post: by
12 posts views Thread by Grunff | last post: by
3 posts views Thread by MattB | last post: by
1 post views Thread by Iulian Ionescu | last post: by
2 posts views Thread by Slav | last post: by
2 posts views Thread by Mark Rae | last post: by
9 posts views Thread by LVP | last post: by
4 posts views Thread by bob | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.