View Single Post

  #1 (permalink)  
Old 06-30-2003
fartsniff
 
Posts: n/a
Default 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.


Reply With Quote