form submission with sub-domain

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • wtrd
    Sergeant First Class

    • Apr 2007
    • 51

    form submission with sub-domain

    Hi, I have been trying to get a form submission finalised using a sub-domain i.e. www.gfmbg.4cyberbiz.com

    My files have been published in public.html/gfmbg

    The form works fine for another website which is on the main www.4cyberbiz.com site (the email domes through fine with all the information) and published in public.html but not for the sub-domain.

    Is there extra html code that I have to place in the page html if using a sub-domain or maybe there is something else I am missing?

    Your assistance would be appreciated.
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: Difficulty in form submission with sub-domain

    Please post the php code that you are using to process the form.

    Also- post a link to your form page.

    WE will then take a look and see what is up.

    Andy
    PHP- is a blast!

    Comment

    • wtrd
      Sergeant First Class

      • Apr 2007
      • 51

      #3
      Re: Difficulty in form submission with sub-domain


      Hi Andy

      Here is the information below:

      Link to application form



      HTML code on 'Thank you' (Action) page

      <?PHP $mailto = "wtrd@slingshot.co.nz"; $email = $HTTP_POST_VARS[email]; if ($email == "") { $email = $mailto; } $mailsubj = "GFMBG Application"; $mailhead = "From: $email\n"; reset ($HTTP_POST_VARS); $mailbody = "Values submitted from web site form :\n"; while (list ($key, $val) = each ($HTTP_POST_VARS)) { if ($key!="submit") { $mailbody .= "$key : $val\n"; } } mail($mailto, $mailsubj, $mailbody, $mailhead); ?>

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <title>Action</title>
      <meta name="GENERATOR" content="Created by BlueVoda">
      </head>
      <body bgcolor="#FFFFFF" text="#000000">
      <div id="bv_" style="position:absolute;left:214px;top:106px;widt h:435px;height:32px;z-index:0" align="center">
      <font style="font-size:13px" color="#000000" face="Arial">Thank you for your Application, please ensure you have downloaded the GFMBG Desktop Reader on the Application Page</font></div>
      </body>
      </html>

      Comment

      • Andy128
        Major General

        • Dec 2005
        • 2317

        #4
        Re: Difficulty in form submission with sub-domain

        The php code is correct.

        Are you certain that the action.php is on the server and in the gfmbf folder?

        The reason I ask is the 404 error- Page not found upon submission indicates that the page is not there.

        Try once again and use the FTP Manager to look into the server and see that the file made it over there and is "action.php".

        Andy
        PHP- is a blast!

        Comment

        • wtrd
          Sergeant First Class

          • Apr 2007
          • 51

          #5
          Re: form submission with sub-domain

          Hi Andy.

          Yes, the action.php file is sitting in the File Manager in the CPanel under the sub-domain public_html/gfmbg

          It gives the following file link also.

          http://www.4cyberbiz.com/gfmbg/Action.php

          Any other ideas?

          Regards

          Stuart

          Comment

          • Andy128
            Major General

            • Dec 2005
            • 2317

            #6
            Re: form submission with sub-domain

            Yes-

            I believe that your form is set to action.php while you named the file
            Action.php (notice the capital A)

            Change it to a small "a" and resend it to the server and I believe it will work.

            Case sensitive will get ya every time.

            Andy
            PHP- is a blast!

            Comment

            • wtrd
              Sergeant First Class

              • Apr 2007
              • 51

              #7
              Re: form submission with sub-domain

              Yes, that's it Andy!

              All working perfectly.

              Thanks so much for your prompt help on this problem.

              Regards

              Stuart

              Comment

              • Andy128
                Major General

                • Dec 2005
                • 2317

                #8
                Re: form submission with sub-domain

                Any time Stuart! Glad all is well.

                Andy
                PHP- is a blast!

                Comment

                Working...
                X