navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

GoLive form will not submit

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Dreamweaver Help >> GoLive form will not submit
Page: [1]
 
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
GoLive form will not submit - 8/22/2008 13:50:27   
My form appears fine, and when I click "submit" my php pops up with the confrimation as if it works fine. But then the form does not go to the e-mail that is specified. I have contacted our host and they say that it must be the code not executing--they are not getting any logs.
Can this code be the source of the problem:

<!--<form method="POST" action="_derived/nortbots.htm" webbot-action="--WEBBOT-SELF--" onsubmit="location.href='_derived/nortbots.htm';return false;" webbot-onsubmit>-->

I have not yet upgraded from GoLive to Dreamweaver. Hope to do that sometime soon!
Thank you.
TexasWebDevelopers

 

Posts: 228
Joined: 2/22/2002
From:
Status: online

 
RE: GoLive form will not submit - 8/22/2008 16:06:50   
Well--the code you show utilizes the FrontPage extensions. Did you build the form using Front Page? Did you want to use the Front Page extensions? Do you have the extensions installed on the host site?

(in reply to maozi)
Larry M.

 

Posts: 2850
Joined: 2/20/2003
From: Greenville, South Carolina, USA
Status: offline

 
RE: GoLive form will not submit - 8/23/2008 13:40:21   
quote:

the code you show utilizes the FrontPage extensions


Agree. Please post your URL for a further code analysis.

_____________________________

Larry M.

Reality is the leading cause of stress among those few in touch with it

(in reply to TexasWebDevelopers)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 8:53:49   
The url is www.accessproject.org. But I took the form down. Should I put it back up so that you can see it?

(in reply to maozi)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 9:04:41   
If your form has a problem, put it up so that we can see what is wrong with it.

The code in your first post has been COMMENTED OUT, so that couldn't have cause any problem.

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to maozi)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 9:20:11   
OK, I have put it back up. Go to www.accessproject.org; then click on the center blue square that says "The Access Project." It is the link on the left hand side that says "Click here to access our Medical Debt Resolution Program form."

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 9:58:47   
Are you expecting the form to send an email to mbaker@accessproject.org?

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to maozi)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 10:06:09   
Yes, I was expecting it to send the actual form to me at mbaker@accessproject.org.

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 10:10:20   
Afraid it isn't that simple.

You need to have in place a php email script which your form should post to eg mdrp.php.

What is on mdrp.php currently? Are you able to post the code?

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to maozi)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 10:29:11   
Oh, I thought the mdrp.php was just the "form confirmation" reply that people got.
Here is the current code for the mdrp.php file:
<?
if($form == "mdrp")
{
$subject = "MDRP Form";
$email1 = "mbaker@accessproject.org";
$email2 = "info@accessproject.org";
$message .= "Input from MDRPEnroll Form\n";
$message .= "------------------------\n";
for(reset($HTTP_POST_VARS);$key=key($HTTP_POST_VARS);next($HTTP_POST_VARS))
{
if($key == "form")
continue;
$value = pos($HTTP_POST_VARS);
$key = eregi_replace("_", " ", $key);
$message .= "$key: $value\n";
}

mail($email1, $subject, $message, $headers);
mail($email2, $subject, $message, $headers);

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 10:48:05   
quote:


mail($email1, $subject, $message, $headers);
mail($email2, $subject, $message, $headers);


what is defined in the variable $headers?

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to maozi)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 10:57:21   
That's a good question--it looks like nothing! Should there be something defined there?

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 11:08:08   

If there isn't anything defined in $headers, then leave this argument out of the mail() function.

Try this instead:

mail($email1, $subject, $message);
mail($email2, $subject, $message);


_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to maozi)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 11:56:17   
OK, I have removed that. But somethink is still wrong as it is not submitting yet.
BTW, thanks for taking the time to check this out. It is so frustrating!

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 12:14:52   
I looked at your mdrp.php code again and although I am not very PHP savvy, I noted that there is an unmatched pair of curly braces. Is that all the code on the mdrp.php? Post ALL the source code if you can.



_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to maozi)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 12:34:45   
Here is all the code:
<?
if($form == "mdrp")
{
$subject = "MDRP Form";
$email1 = "mbaker@accessproject.org";
$email2 = "info@accessproject.org";
$message .= "Input from MDRPEnroll Form\n";
$message .= "------------------------\n";
for(reset($HTTP_POST_VARS);$key=key($HTTP_POST_VARS);next($HTTP_POST_VARS))
{
if($key == "form")
continue;
$value = pos($HTTP_POST_VARS);
$key = eregi_replace("_", " ", $key);
$message .= "$key: $value\n";
}

mail($email1, $subject, $message);
mail($email2, $subject, $message);
}
?>
<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 5">
<title>Welcome to Adobe GoLive 5</title>
</head>

<body bgcolor="#ffffff">
<table cool width="774" height="497" usegridx usegridy showgridx showgridy gridx="16" gridy="16" border="0" cellpadding="0" cellspacing="0">
<tr height="48">
<td width="773" height="48" colspan="3"></td>
<td width="1" height="48"><spacer type="block" width="1" height="48"></td>
</tr>
<tr height="448">
<td width="112" height="448"></td>
<td content csheight="146" width="512" height="448" valign="top" align="left" xpos="112">
<p><font face="Cambria, FontName"><b><font size="5" color="#000099">Form Confirmation!</font></b><br>
</font><font size="3" color="#000099" face="Cambria, FontName">Thank you</font><br>
</p>
</td>
<td width="149" height="448"></td>
<td width="1" height="448"><spacer type="block" width="1" height="448"></td>
</tr>
<tr height="1" cntrlrow>
<td width="112" height="1"><spacer type="block" width="112" height="1"></td>
<td width="512" height="1"><spacer type="block" width="512" height="1"></td>
<td width="149" height="1"><spacer type="block" width="149" height="1"></td>
<td width="1" height="1"></td>
</tr>
</table>
<p></p>
</body>

</html>

(in reply to William Lee)
William Lee

 

Posts: 1179
Joined: 1/25/2002
From: Singapore
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 12:45:29   
Well, looks ok to me. Nothing more I can do.

Check with your web host if your server is configured for php sendmail.

_____________________________

William Lee

pǝssǝɟoɹd-ɟ1ǝs ʎɥʇɹoʍʇsnɹʇ ʇsoɯ ɹnoʎ
nɹnb ǝsɐqɐʇɐp & dsɐ ,ʍɹp ,ǝbɐdʇuoɹɟ





(in reply to maozi)
maozi

 

Posts: 9
Joined: 8/22/2008
Status: offline

 
RE: GoLive form will not submit - 8/25/2008 12:52:28   
Thanks for all your time William!

(in reply to William Lee)
Page:   [1]

All Forums >> Web Development >> Dreamweaver Help >> GoLive form will not submit
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts