All Products 
Username / Customer#
Password
Log In
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Setting up gdform.php to receive email

Viewing post 1 to 15 (16 total posts)
1 2
Profile picture of mcampos

mcampos said 2 years ago:

Hello,

I am a new godaddy customer and I am having a real hard time to set up the contact form. I spoke with the support agents at godaddy and everything is set up correctly. The only step that I am missing is the necessary changes to the gdform.php file. Following is the form I created and the script as it was saved on my root directory. I know I need to edit the script to read the info from the form, add the email where the message has to be sent, and also specify the server. I just don’t know exactly how to do it. Any assistance will be highly appreciated.

******Form
<form action=”gdform.php” method=”post”>
<input type=”hidden” name=”subject” value=”Form Submission” />
<input type=”hidden” name=”redirect” value=”brazilianarts.org” />
<p>E-Mail:
<input type=”text” name=”email” style=”width: 325px” /></p>
<p>Subject:
<input type=”text” name=”Subject” style=”width: 325px” /></p>
<p>Comments:
<textarea name=”comments” cols=”40″ rows=”10″></textarea></p>
<input type=”submit” name=”submit” value=”Submit” style=”border-style: none; background-color: #254da0; color: White; margin: 0; text-decoration: none; padding: 5px 15px 5px 15px; margin-left: 1px; white-space: nowrap; position: relative;” />
</form>

************gdform.php

<?php
$request_method = $_SERVER["REQUEST_METHOD"];

if($request_method == “GET”)
{
$query_vars = $_GET;
}
elseif ($request_method == “POST”)
{
$query_vars = $_POST;
}

reset($query_vars);
$t = date(“U”);
$file = $_SERVER['DOCUMENT_ROOT'] . “ssfmgdform_” . $t;
$fp = fopen($file,”w”);

while (list ($key, $val) = each ($query_vars))
{
fputs($fp,”<GDFORM_VARIABLE NAME=$key START>rn”);
fputs($fp,”$valrn”);
fputs($fp,”<GDFORM_VARIABLE NAME=$key END>rn”);
if ($key == “redirect”)
{
$landing_page = $val;
}
}

fclose($fp);

if ($landing_page != “”)
{
header(“Location: http://“.$_SERVER["HTTP_HOST"].”/$landing_page”);
}
else
{
header(“Location: http://“.$_SERVER["HTTP_HOST"].”/”);
}

?>

Profile picture of Bruce

GoDaddy Contributor bruce said 2 years ago:

@mcampos

In order to ensure that your gdform.php script is correct, I advise looking at the following article:

http://support.godaddy.com/help/510

You will want to refer to the information further down the page on this article as it does cover both webformmailer.php and gdform.php.

Regards,
Bruce

Profile picture of mcampos

mcampos said 2 years ago:

Bruce,

Thank you for replying. The link you sent me just gives me an example of a form that has the formaction pointing to the script in file gdform.php I even had one of of you guys looking at my Contactus.aspx page and everything else as far as setting up the Form Email and all. What I really need to know is how edit the script in order to get the data from the form and send the email. This should be easy and I had all coded in C# but your server doesn’t accept that and we are forced to use your gdform.php script but guys are not providing any tutorials. Even the support agent that I spoke with told me everything was correct I just need to edit the code on gdform.php in order to work but GoDaddy does not offer code support. I see in the internet a lot of people run into the same problem I am yet to find someone that had a solution. Please help!
Thank you in advance,
Marcelo

Profile picture of JasonP

GoDaddy Expert JasonP said 2 years ago:

@mcampos

The file will be on the root of your account, however as you have indicated, we are unable to troubleshoot any errors in the script if you elect to modify it. as for using your own script, what are the errors you are encountering?

Jason

Profile picture of mcampos

mcampos said 2 years ago:

I spoke with one of the guys from tech support, I think the name was Alex, and he said I had to change the file. I followed what you have on http://support.godaddy.com/help/510 and nothing happens. No email is sent and the user is not redirected. Someone in another forum suggested to use the full path to the gdform.php file and redirect. I tried and still didn’t get nothing…

Profile picture of JasonP

GoDaddy Expert JasonP said 2 years ago:

@mcampos

Just wanted to jump in and ensure that the Support Team was able to review the issue you are having and verify that it was resolved.

Jason

Profile picture of mcampos

mcampos said 2 years ago:

I spent 1h 45min on the phone last night with one of your support agents and even though she was really nice she was not able to resolve the issue. Needless to say my client is furious and I don’t know what else to try. Any further help will be greatly appreciated.

Profile picture of JasonP

GoDaddy Expert JasonP said 2 years ago:

@mcampos

What is the URL for the form? I would like to see the error that is being thrown.

Thanks,

Jason

Profile picture of White

white said 1 year, 9 months ago:

I am facing the same problem, i discarded my mailform and script and used the instruction given by GD

gdform.php as action and post as method.
i even removed all extra fields and used bare minimum as described in the example.

everything seems to be ok except i never get any emails.

just to be on the sure side i read every thread and quetion i could find. there is no problem, i even copied the same exact code given in GD example and still no email.

did anyone figure what causes this? it’s a ridicules situation.

and i am sorry to say but i never used GD before and after this i don’t think i will use it again.

Profile picture of White

white said 1 year, 9 months ago:

suddenly it works. we didn’t change anything it just started working

Profile picture of White

white said 1 year, 9 months ago:

disregard my last post.
my client was in-touch with support while i was away, it was a problem with the email box.

Profile picture of AdamR

GoDaddy Expert adamr said 1 year, 9 months ago:

@white

Glad to hear you were able to resolve the issue. Thanks for posting!

-Adam

Profile picture of slimchacnesrap

slimchacnesrap said 1 year, 1 month ago:

i have run into an issue regarding this too it has some type of php error its all on http://www.slimchancesraps.com/signup.html

Profile picture of slimchacnesrap

slimchacnesrap said 1 year, 1 month ago:

Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘America/Denver’ for ‘MST/-7.0/no DST’ instead in /home/content/87/9251887/html/gdform.php on line 9

Warning: Cannot modify header information – headers already sent by (output started at /home/content/87/9251887/html/gdform.php:9) in /home/content/87/9251887/html/gdform.php on line 21

Profile picture of luke_lee

luke_lee said 10 months, 3 weeks ago:

I have never seen anyone state an email address, something like:
<input type=”hidden” name”email” value=”info@abcde.com” />
How does gdform know what email it goes?

1 2

This topic is closed, replies are no longer accepted.