Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
Anyone else have a problem with gdform.php in godaddy's hosting?
Old 01-22-2005, 04:50 AM Anyone else have a problem with gdform.php in godaddy's hosting?
Line's Avatar
Extreme Talker

Posts: 212
Trades: 0
Anyone else have a problem with gdform.php in godaddy's hosting?

I have a form that I used to use with the formmail.cgi (Matt's script archive) and when I switched to godaddy, they only offer their own form, gdform.php

Anyhow,
I've been trying to send out a test and it's not working.

Any help is appreciated.

-Line
__________________

Please login or register to view this content. Registration is FREE
| The LineDetail Drawing Co. | Theme Site Design • Art • Animation

Please login or register to view this content. Registration is FREE
| Low Cost Web Hosting & Domain Name Registration.
Line is offline
View Public Profile Visit Line's homepage!
 
 
Register now for full access!
Old 01-22-2005, 12:11 PM
ACJavascript's Avatar
Humble Mod

Posts: 548
Location: CT, USA
Trades: 0
Hey,

Could you post the script and your form.
__________________

Please login or register to view this content. Registration is FREE
- 100 Satisfied Customers - Custom Programming and Web Development
ACJavascript is offline
View Public Profile Visit ACJavascript's homepage!
 
Old 01-22-2005, 12:23 PM
Line's Avatar
Extreme Talker

Posts: 212
Trades: 0
Hey AC! Thanks for replying!

However, I actually found out why it wasn't working!

Thanks anyway!

-Line
__________________

Please login or register to view this content. Registration is FREE
| The LineDetail Drawing Co. | Theme Site Design • Art • Animation

Please login or register to view this content. Registration is FREE
| Low Cost Web Hosting & Domain Name Registration.
Line is offline
View Public Profile Visit Line's homepage!
 
Old 01-23-2005, 01:29 PM Can Anyone Help me with the GDForm.php on GoDaddy?
Junior Talker

Posts: 1
Trades: 0
I'm having problems with my gdform.php on Godaddy.com, too. Any suggestions? Here's the script and form. Thanks!

FORM

<center>
<TABLE BORDER="0" cellpadding="0" cellspacing="0" width="80%"><TR><TD>

<form name="contact" action="gdform.php" method="post">
<input type="hidden" name="subject" value="BooksThatChange Web Inquiry">
<input type="hidden" name="redirect" value="thanks.htm">
<INPUT TYPE="HIDDEN" NAME="required" VALUE="email,your_name">

<TABLE BORDER=0 cellpadding=2 cellspacing=0 width="100%">

<TR><TD VALIGN=TOP>


<INPUT TYPE="TEXT" NAME="your_name" SIZE="30" CLASS="shadeform"> Name<BR>

</TD></TR><TR><TD>

<INPUT TYPE="TEXT" NAME="company_name" SIZE="30" CLASS="shadeform"> Company<BR>

</TD></TR><TR><TD>

<INPUT TYPE="TEXT" NAME="phone" SIZE="30" CLASS="shadeform"> Phone<BR>

</TD></TR><TR><TD>

<INPUT TYPE="TEXT" NAME="email" SIZE="30" CLASS="shadeform"> E-Mail<BR>

</TD></TR><TR><TD><BR>

<TABLE BORDER="0" cellpadding="2" cellspacing="0" width="100%"><TR><TD VALIGN="TOP">

Please tell us where you found us:<BR>

</td></tr></table>

<select name="through" class="dropdown">
<option selected value="None selected">Please Select One ----></option>
<option value="Alltheweb">Alltheweb</option>
<option value="AltaVista">AltaVista</option>
<option value="AOLFind">AOL</option>
<option value="Ask_Jeeves">Ask Jeeves</option>
<option value="Excite">Excite</option>
<option value="Google">Google</option>
<option value="Go">Go</option>
<option value="Goto">Goto</option>
<option value="Hotbot">Hotbot</option>
<option value="Infoseek">Infoseek</option>
<option value="Lycos">Lycos</option>
<option value="MSN">MSN</option>
<option value="snap">Snap</option>
<option value="Web_Crawler">Web Crawler</option>
<option value="yahoo">Yahoo</option>
<option value="Banner-Ad">Banner Ad</option>
<option value="Friend">Friend</option>
<option value="website">Website</option>
<option value="News_Group">News Group</option>
<option value="Magazine Newspaper">Magazine/Newspaper</option>
<option value="Radio">Radio</option>
<option value="other">Other</option>
</select>

</td></tr></table>

<BR>

<TABLE BORDER="0" cellpadding="2" cellspacing="0" width="100%"><TR><TD VALIGN="TOP">

Comments/Questions:<BR>

</td></tr></table>

<TEXTAREA NAME="comments" ROWS="6" COLS="35" wrap=soft CLASS="textarea"></TEXTAREA>

<br><br>

<input type="submit" name="Action" value="SUBMIT QUERY" onmouseover="this.className='submitbuttonon'" onmouseout="this.className='submitbutton'" class="submitbutton"><br>

</FORM>

GDFORM.PHP SCRIPT

<?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");
$fp = fopen("../data/gdform_$t","w");
while (list ($key, $val) = each ($query_vars)) {
fputs($fp,"<GDFORM_VARIABLE NAME=$key START>\n");
fputs($fp,"$val\n");
fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n");
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"]."/");
}


?>
wasatchmtns is offline
View Public Profile
 
Old 02-19-2005, 10:58 AM
Junior Talker

Posts: 1
Trades: 0
I can't get my form working either...what did you do to get it to work...

I did not alter the gdform.php code only my form at: http://www.arrowheadconsulting.com/contactus/index.htm

any thoughts?
davidkraliknam is offline
View Public Profile
 
Old 02-19-2005, 02:38 PM gdform.php?
Average Talker

Posts: 17
Trades: 0
why use gdform.php?
A quite usefull form submission script can be made with just a two lines.
Make this your action in your form, and make what ever entries you want.
It will use php's mail function to send off a email with all of the posted entries.

~James

-mailer.php
Code:
<?
// Your thank you site. 
$thankyou="http://domain.com/thankyou.html"
// Your Email addy
$email="user@domain.com";
mail($email, 'Web submission from $_SERVER['remote_addr']', print_r($_POST, true).'\n END');
?>
<script language=javascript>
window.location('<? echo $thankyou; ?>');
</script>
--End mailer.php

I suggest avoiding pre written code.. take the concepts and apply them to your own set.
ortel is offline
View Public Profile
 
Old 02-27-2005, 07:37 PM Code Fix
Average Talker

Posts: 17
Trades: 0
Sorry about the double post but it was raised to my attention that some people
would like a plug in and play form emailing file. So this should just plug in,
enter your email address, and your thank you page and it 'should' send off the email.
This PHP works on servers with newish php installs.

form.php
-Example web form
HTML Code:
<html>
<form action=mailer.php method=POST>
<input type=text name=name value="John Doe">
<input type=submit>
</form>
</html>
mailer.php
-Example email script to email all inputs from the previous form.
PHP Code:
<?
// Your thank you site.
$thankyou="http://domain.com/thankyou.html";
// Your Email addy
$email="user@domain.com";
mail($email'Web submission from '.$_SERVER['remote_addr'], print_r($_POST,true).'\n END');
?>
<script language=javascript>
window.location('<? echo $thankyou?>');
</script>
~James
ortel is offline
View Public Profile
 
Old 03-20-2005, 09:14 AM
Junior Talker

Posts: 2
Trades: 0
Thanks for the help.

My questions is where does that mailer.php script go?? Does it go on the website inside the header? Where?

THanks a ton!
PromoCom is offline
View Public Profile
 
Old 03-20-2005, 11:54 AM
Average Talker

Posts: 17
Trades: 0
It is it's own file on the server. It could be on that same page, but you'd have to change some stuff, so trust me when I say it's easier to put it in another file.
LemmonLime is offline
View Public Profile Visit LemmonLime's homepage!
 
Old 03-06-2008, 04:58 AM Guys I need your help please.
Skilled Talker

Posts: 52
Name: Delon
Trades: 0
Hi guys,

I've been reading in on a few of the posts so far about "gdform.php", and while I don't have a problem with my form, I need a way of making it work on no matter which server it's placed on.

Let me elaborate a bit further... I have a website that is being hosted by Godaddy... I am selling this website to people with resell rights, and this website has a form on it (this form will allow me to be in contact with those who have purchased from others). When these people purchase this website they won't necessarily use Godaddy as their web host so I doubt gdform.php will work on their server even if it's uploaded up there, and that would render my form useless.

I need a way of having this form send the required information to me no matter which server these people might chose to upload the website to, while still sending to a forwarding email addreass that I have with Godaddy.

I am also open to other suggestions as long as I can get the same result, but if it can be done in such a way that it still continues to send to my Godaddy forwarding address then that would be ideal for me

Thanks guys in advance for you help, looking forward to hearing from you guys.
oceankid is offline
View Public Profile
 
Old 11-22-2008, 02:20 PM Re: Anyone else have a problem with gdform.php in godaddy's hosting?
Junior Talker

Posts: 1
Trades: 0
Hi everyone,
I just swtich over hosting to godaddy, was using fromtomail in my form, had not problem until i switch to godaddy, I see in the form below that some of you were having this problem as well...exactly what did you guys change in your form to get it working. I'm still new to php, I just cant figure out what you guys change in the script below. Any ideas will be greatful. you can look at the form there is two of them below.

1...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK HREF="style.css" TYPE="text/css" REL="stylesheet">
<title>Contacts</title>
<script language="JavaScript" type="text/JavaScript">
<!--


function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
.style6 {
color: #5f5f5f;
font-size: 11px;
font-family: tahoma;
line-height: 14px;
padding-left: 19px;
padding-right: 35px;
padding-top: 12px;
}
.style7 {
color: #276695;
font-size: 11px;
font-family: tahoma;
text-decoration: none;
padding-left: 100px;
padding-top: 10px;
}
.style8 {
color: #5f5f5f;
font-size: 11px;
font-family: tahoma;
line-height: 14px;
padding-left: 0px;
padding-top: 12px;
}
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#075384" style="background-repeat:repeat-x; background-position:top; height:100% ">
<tr>
<td bgcolor="#022854" style="background-image:url(images/til_1.jpg); background-position:bottom; background-repeat:repeat-x ">&nbsp;</td>
<td width="766" align="left" valign="top" bgcolor="#022854" style="background-image:url(images/til_1.jpg); background-position:bottom; background-repeat:repeat-x "><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td width="227" height="100%" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" valign="top"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/s...rsion=6,0,40,0"
width="184" height="404">
<param name="movie" value="http://mysite.verizon.net/cwarner3/Flash/Menu.swf">
<param name="quality" value="High">
<param name="menu" value="false">
<!--[if !IE]> <-->
<object data="http://mysite.verizon.net/cwarner3/Flash/Menu.swf"
width="184" height="404" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object></td>
</tr>
<tr>
<td height="296" align="left" valign="top"><img alt="" src="images/bottom_1.jpg" width="227" height="296"></td>
</tr>
</table></td>
<td width="480" height="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:100% ">
<tr>
<td height="94" align="left" valign="bottom"><img alt="" src="images/line_1.jpg" width="480" height="5"></td>
</tr>
<tr>
<td height="100%" align="left" valign="top" style="background-image:url(images/rep_1.jpg); background-position:top left; background-repeat:repeat "><table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-image:url(images/rep_2.jpg); background-position:bottom left; background-repeat:repeat-x; height:100% ">
<tr align="left" valign="top">
<td width="29" height="100%" valign="bottom" style="background-image:url(images/rep_3.jpg); background-position:left; background-repeat:repeat-y "><img alt="" src="images/left_1.jpg" width="29" height="315"></td>
<td height="100%" style="border-right:2px solid #ffffff "><table width="100%" border="0" cellspacing="0" cellpadding="0" style="height:100% ">
<tr>
<td align="left" valign="top" style="background-image:url(images/line_2.jpg); background-position:bottom left; background-repeat:no-repeat "><div style="padding-left:0px; padding-top:24px"><img alt="" src="images/welcome_6.gif" width="92" height="19"></div>
<div style="padding-left:0px; padding-top:24px; padding-bottom:21px">
<form action="gdform.php" METHOD="POST" style="margin:0px; padding:0px;">
<input type="hidden" name="subject" value-"Form Subission"/>
<input type="hidden"w name="redirect" value="
Dungenkeeper is offline
View Public Profile
 
Closed Thread     « Reply to Anyone else have a problem with gdform.php in godaddy's hosting?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.87717 seconds with 12 queries