PDA

View Full Version : form submission with sub-domain



wtrd
05-09-2007, 12:53 AM
Hi, I have been trying to get a form submission finalised using a sub-domain i.e. www.gfmbg.4cyberbiz.com (http://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 (http://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
05-09-2007, 01:13 AM
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

wtrd
05-09-2007, 02:03 AM
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;width: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>

Andy128
05-09-2007, 03:03 AM
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

wtrd
05-09-2007, 03:34 AM
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 (http://www.4cyberbiz.com/gfmbg/Action.php)

Any other ideas?

Regards

Stuart

Andy128
05-09-2007, 03:50 AM
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

wtrd
05-09-2007, 04:00 AM
Yes, that's it Andy!

All working perfectly.

Thanks so much for your prompt help on this problem.

Regards

Stuart

Andy128
05-09-2007, 04:01 AM
Any time Stuart! Glad all is well.

Andy