Switching to and from http and https

Ask a Question related to PHP Development, Design and Development.

  1. #1

    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
    ([url]http://www.mydomain.com[/url]).

    if i wanted this form to pass to my secure site, ie.
    [url]https://www.mydomain.com[/url], 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.


    fartsniff Guest

  2. Similar Questions and Discussions

    1. Switching Between HTTP and HTTPS
      Hi I wish to have a web site that has most of the pages as normal HTTP pages but has some areas that use HTTPS. I want to have it that if a user...
    2. http to https
      Is there a coldfusion function that determines the gives me the protocol of the address bar(http, https) .I tried GetHttpRequestData, but I do not...
    3. Switching between http and https popping up a login box
      Hi, I am response.redirecting from an http to a https site, as follows: ...
    4. PHP won't parse under https, but will with http
      I'm not sure if this is the right forum for this question, but I'm hoping someone can help nonetheless. :) I installed an SSL Cert. on a site the...
    5. HTTPS to HTTP
      When I am using server-side button to switch from https to http by using response.redirect "http://a.apsx" in response to the client event, I am...
  3. #2

    Default Re: Switching to and from http and https

    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 [url]http://www.gogo.co.nz/[/url]
    Email domain : gogo.co.nz see user in from header!
    James Sleeman Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139