Results 1 to 8 of 8

Thread: form submission with sub-domain
      
   

  1. #1
    wtrd is offline Staff Sergeant
    Join Date
    Apr 2007
    Posts
    46

    Default 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.

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default 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!

  3. #3
    wtrd is offline Staff Sergeant
    Join Date
    Apr 2007
    Posts
    46

    Default Re: Difficulty in form submission with sub-domain


    Hi Andy

    Here is the information below:

    Link to application form

    http://gfmbg.4cyberbiz.com/join.html

    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>

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default 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!

  5. #5
    wtrd is offline Staff Sergeant
    Join Date
    Apr 2007
    Posts
    46

    Default 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

  6. #6
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default 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!

  7. #7
    wtrd is offline Staff Sergeant
    Join Date
    Apr 2007
    Posts
    46

    Default 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

  8. #8
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: form submission with sub-domain

    Any time Stuart! Glad all is well.

    Andy
    PHP- is a blast!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not 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