I have two almost identical forms on the same page (http://www.pdparenting.com/register.php) and when I submit the second one, I get the error page, though the first works fine. Any ideas what's going wrong??
2nd form won't work-please help!
Collapse
X
-
Re: 2nd form won't work-please help!
I only see one form in your page, so there is not much I can check.Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
-
-
Re: 2nd form won't work-please help!
I am getting this errors after I fill the forms on the browser.
www.costaricagroundtransfers.com
what can it be?
Notice: Undefined variable: error in /home/costaric/public_html/index.php on line 78
Notice: Undefined variable: upload_DstName in /home/costaric/public_html/index.php on line 86
Notice: Undefined variable: upload_SrcName in /home/costaric/public_html/index.php on line 116
Warning: Cannot modify header information - headers already sent by (output started at /home/costaric/public_html/index.php:7 in/home/costaric/public_html/index.php on line 125
Comment
-
-
Re: 2nd form won't work-please help!
Originally posted by CRGT View PostI am getting this errors after I fill the forms on the browser.
www.costaricagroundtransfers.com
what can it be?
Notice: Undefined variable: error in /home/costaric/public_html/index.php on line 78
Notice: Undefined variable: upload_DstName in /home/costaric/public_html/index.php on line 86
Notice: Undefined variable: upload_SrcName in /home/costaric/public_html/index.php on line 116
Warning: Cannot modify header information - headers already sent by (output started at /home/costaric/public_html/index.php:7 in/home/costaric/public_html/index.php on line 125
Please add the following code in your Page HTML, Start of page:
<?php
error_reporting(0);
?>
Test and post back.Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
Comment
-
-
Re: 2nd form won't work-please help!
Originally posted by navaldesign View PostPlease add the following code in your Page HTML, Start of page:
<?php
error_reporting(0);
?>
Test and post back.
I've had exactly the same problem with the same error messages as the guy above, the form submits and I get the data through but there is no confirmation page. I have tried the above in the Page HTML but to no effect. There are two forms on my site where this is the case:
and
Would appreciate some advice as I need to get the first page up and running asap.
Thank you mate :)
Comment
-
-
Re: 2nd form won't work-please help!
Follow above described instructions please. Should fix the issue.Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
Comment
-
-
Re: 2nd form won't work-please help!
Please download the file of one of the two pages from the server, open it in Notepad and post the code here.Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
Comment
-
-
Re: 2nd form won't work-please help!
Originally posted by navaldesign View PostPlease download the file of one of the two pages from the server, open it in Notepad and post the code here.
<?php
if($_SERVER['REQUEST_METHOD'] == 'POST')
{
function RecursiveMkdir($path)
{
if (!file_exists($path))
{
RecursiveMkdir(dirname($path));
mkdir($path, 0777);
}
}
$mailto = 'feedback@echotown.co.uk';
$mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
$subject = 'New T-shirt Order';
$message = 'Values submitted from web site form:';
$success_url = 'http://echotown.co.uk/tshirtordersuccess.html';
$error_url = 'http://echotown.co.uk/error.html';
$max_filesize = isset($_POST['filesize']) ? $_POST['filesize'] * 1024 : 1024000;
$upload_folder = isset($_POST['upload_folder']) ? $_POST['upload_folder'] : "uploads";
$upload_folder = "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME'])."/".$upload_folder;
$header = "From: ".$mailfrom."\r\n";
$header .= "Reply-To: ".$mailfrom."\r\n";
$header .= "MIME-Version: 1.0"."\r\n";
$header .= "Content-Type: text/plain; charset=utf-8"."\r\n";
$header .= "Content-Transfer-Encoding: 8bit"."\r\n";
$header .= "X-Mailer: PHP v".phpversion();
$prefix = rand(111111, 999999);
$i = 0;
while (list ($key, $val) = each ($_FILES))
{
if ($_FILES[$key]['name'] != "" and file_exists($_FILES[$key]['tmp_name']) and $_FILES[$key]['size'] > 0)
{
$upload_DstName[$i] = $prefix . "_" . str_replace(" ", "_", $_FILES[$key]['name']);
$upload_SrcName[$i] = $_FILES[$key]['name'];
$upload_Size[$i] = ($_FILES[$key]['size']);
$upload_Temp[$i] = ($_FILES[$key]['tmp_name']);
$upload_Type[$i] = ($_FILES[$key]['type']);
$uploadlink[$i] = "$upload_folder/$upload_DstName[$i]";
$upload_fieldname[$i] = $key;
$upload_fieldname_final[$i] = ucwords(str_replace("_", " ", $key));
$fieldvalue[$i] = $uploadlink[$i];
$i++;
}
if ($upload_Size[$i] >= $max_filesize)
{
$error .= "The size of $key (file: $upload_SrcName[$i]) is bigger than the allowed " . $max_filesize/1024 . " Kbytes!\n";
}
}
$crack[0] = '\n';
$crack[1] = '\r';
$crack[2] = "%0a";
$crack[3] = "%0d";
$crack[4] = "content-type:";
$crack[5] = "to:";
$crack[6] = "cc:";
$crack[7] = "bcc:";
$crack[8] = "mime-version:";
$crack[9] = "x0a";
$crack[10] = "x0d";
foreach ($_POST as $key => $value)
{
for ($k = 0; $k < count($crack); $k++)
{
if (substr_count(strtolower($value), $crack[$k]))
{
$error .= "The field $key contained e-mail headers ($crack[$k]) in the value submitted. This seems to be a cracking attempt and the message has not been sent.!<br>";
}
}
}
if ($error)
{
$errorcode = file_get_contents($error_url);
$replace = "##error##";
$errorcode = str_replace($replace, $error, $errorcode);
echo $errorcode;
exit;
}
$uploadfolder = basename($upload_folder);
for ($i = 0; $i < count($upload_DstName); $i++)
{
$uploadFile = $uploadfolder . "/" . $upload_DstName[$i];
if (!is_dir(dirname($uploadFile)))
{
@RecursiveMkdir(dirname($uploadFile));
}
else
{
@chmod(dirname($uploadFile), 0777);
}
@move_uploaded_file($upload_Temp[$i] , $uploadFile);
chmod($uploadFile, 0644);
}
$internalfields = array ("submit", "reset", "filesize", "upload_folder", "send", "captcha_code");
$message .= "\n";
foreach ($_POST as $key => $value)
{
if (!in_array(strtolower($key), $internalfields))
{
if (!is_array($value))
{
$message .= ucwords(str_replace("_", " ", $key)) . " : " . $value . "\n";
}
else
{
$message .= ucwords(str_replace("_", " ", $key)) . " : " . implode(",", $value) . "\n";
}
}
}
if (count($upload_SrcName) > 0)
{
$message .= "\nThe following file have been uploaded:\n";
for ($i = 0; $i < count($upload_SrcName); $i++)
{
$message .= $upload_SrcName[$i] . " Link: " . $uploadlink[$i] . "\n";
}
}
mail($mailto, $subject, stripslashes($message), $header);
header('Location: '.$success_url);
exit;
}
?>
<?php
error_reporting(0);
?><!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>Echo Town - T-shirt Pre-Order</title>
<meta name="GENERATOR" content="Created by BlueVoda Website builder http://www.bluevoda.com">
<meta name="HOSTING" content="Hosting Provided By VodaHost http://www.vodahost.com">
<link rel="shortcut icon" href="favicon.ico">
<style type="text/css">
div#container
{
width: 1100px;
position: relative;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
body
{
text-align: center;
margin: 0;
}
</style>
<script type="text/javascript" src="./jscookmenu.js"></script>
<style type="text/css">
.ThemeMenuBar2Menu,
.ThemeMenuBar2SubMenuTable
{
font-family: Arial;
font-size: 13px;
font-weight: bold;
color: #FFFFFF;
text-align: left;
padding: 0;
cursor: pointer;
}
.ThemeMenuBar2MenuOuter
{
background-color: #444A51;
border: 0;
}
.ThemeMenuBar2SubMenu
{
position: absolute;
visibility: hidden;
border: 0;
padding: 0;
border: 0;
}
.ThemeMenuBar2Menu td
{
padding: 0px 0px 0px 0px;
}
.ThemeMenuBar2SubMenuTable
{
color: #FFFFFF;
text-align: left;
background-color: #444A51;
font-weight: bold;
font-style: normal;
text-decoration: none;
}
.ThemeMenuBar2SubMenuTable td
{
white-space: nowrap;
}
.ThemeMenuBar2MainItem,
.ThemeMenuBar2MainItemHover,
.ThemeMenuBar2MainItemActive,
.ThemeMenuBar2MenuItem,
.ThemeMenuBar2MenuItemHover,
.ThemeMenuBar2MenuItemActive
{
white-space: nowrap;
}
.ThemeMenuBar2MainItemHover,
.ThemeMenuBar2MainItemActive
{
color: #A0A0A0;
background-color: #FFE4E1;
background: transparent;
font-weight: bold;
font-style: normal;
text-decoration: none;
}
.ThemeMenuBar2MenuItemHover,
.ThemeMenuBar2MenuItemActive
{
color: #A0A0A0;
background-color: #FFE4E1;
background: transparent;
font-weight: bold;
font-style: normal;
text-decoration: none;
}
.ThemeMenuBar2MenuFolderLeft,
.ThemeMenuBar2MenuFolderRight,
.ThemeMenuBar2MenuItemLeft,
.ThemeMenuBar2MenuItemRight
{
padding: 0px 0px 0px 0px;
}
td.ThemeMenuBar2MainFolderText,
td.ThemeMenuBar2MainItemText
{
padding: 0px 3px 0px 3px;
}
.ThemeMenuBar2MenuFolderText,
.ThemeMenuBar2MenuItemText
{
padding: 0px 3px 0px 3px;
}
td.ThemeMenuBar2MenuSplit
{
overflow: hidden;
background-color: inherit;
}
div.ThemeMenuBar2MenuSplit
{
height: 1px;
margin: 0px 0px 0px 0px;
overflow: hidden;
background-color: inherit;
border-top: 1px solid #FFFFFF;
}
.ThemeMenuBar2MenuVSplit
{
display: block;
width: 1px;
margin: 0px 5px 0px 5px;
overflow: hidden;
background-color: inherit;
border-right: 1px solid #FFFFFF;
}
</style>
</head>
<body bgcolor="#444A51" text="#000000">
<div id="container">
<div id="bv_Image1" style="overflow:hidden;position:absolute;left:0px; top:0px;z-index:15" align="left">
<img src="images/T-shirt Pre-Order Page.jpg" id="Image1" alt="" align="top" border="0" style="width:1100px;height:685px;"></div>
<div id="bv_Text2" style="position:absolute;left:787px;top:687px;widt h:297px;height:14px;z-index:16;" align="left">
<font style="font-size:11px" color="#000000" face="Arial">All Content © Richard Harrison 2012 | All Rights Reserved</font></div>
<iframe name="sidebar" id="InlineFrame2" style="position:absolute;left:839px;top:13px;width :263px;height:668px;z-index:17;" src="http://www.echotown.co.uk/sidebar.html" scrolling="no" frameborder="0" allowtransparency="true" background-color="transparent">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
<div id="bv_MenuBar2" style="position:absolute;left:33px;top:686px;width :749px;height:18px;z-index:2018;" align="left">
<script type="text/javascript">
<!--
var wbMenuMenuBar2 =
[
[null, 'MYSPACE ', 'http://www.myspace.com/echotown', '_blank', 'MYSPACE '],
[null, 'FACEBOOK ', 'http://www.facebook.com/echotown', '_blank', 'FACEBOOK '],
[null, 'LAST.FM ', 'http://www.last.fm/music/Echo+Town', '_blank', 'LAST.FM '],
[null, 'TWITTER ', 'http://www.twitter.com/echotowntweet', '_blank', 'TWITTER '],
[null, 'REVERBNATION ', 'http://www.reverbnation.com/echotown', '_blank', 'REVERBNATION '],
[null, 'JOIN THE MAILING LIST & nbsp; ', 'http://www.echotown.co.uk/mailinglist.html', '_self', 'JOIN THE MAILING LIST '],
[null, 'PRIVACY POLICY', 'http://www.echotown.co.uk/privacypolicy.html', '_self', 'PRIVACY POLICY']
];
-->
</script>
<div id="MenuIDMenuBar2"></div>
<script type="text/javascript">
<!--
var cmMenuBar2 =
{
mainFolderLeft: '',
mainFolderRight: '',
mainItemLeft: '',
mainItemRight: '',
folderLeft: '',
folderRight: '',
itemLeft: '',
itemRight: '',
mainSpacing: 0,
subSpacing: 0,
delay: 100,
offsetHMainAdjust: [0, 0],
offsetSubAdjust: [0, 0]
};
var cmThemeMenuBar2HSplit = [_cmNoClick, '<td colspan="3" class="ThemeMenuBar2MenuSplit"><div class="ThemeMenuBar2MenuSplit"><\/div><\/td>'];
var cmThemeMenuBar2MainHSplit = [_cmNoClick, '<td colspan="3" class="ThemeMenuBar2MenuSplit"><div class="ThemeMenuBar2MenuSplit"><\/div><\/td>'];
var cmThemeMenuBar2MainVSplit = [_cmNoClick, '<div class="ThemeMenuBar2MenuVSplit">|<\/div>'];
cmMenuBar2.effect = new CMFadingEffect(30, 50);
cmDraw('MenuIDMenuBar2', wbMenuMenuBar2, 'hbr', cmMenuBar2, 'ThemeMenuBar2');
-->
</script>
</div>
<div id="bv_Shape4" style="position:absolute;left:55px;top:410px;width :215px;height:63px;z-index:19;" align="center">
<a href="http://www.echotown.co.uk/mensslim.jpg" target="_blank"><img src="images/tshirt01072.gif" id="Shape4" align="top" alt="" title="" border="0" width="215" height="63"></a></div>
<div id="bv_Shape5" style="position:absolute;left:55px;top:476px;width :215px;height:63px;z-index:20;" align="center">
<a href="http://www.echotown.co.uk/womensslim.jpg" target="_blank"><img src="images/tshirt01073.gif" id="Shape5" align="top" alt="" title="" border="0" width="215" height="63"></a></div>
<div id="bv_Shape6" style="position:absolute;left:56px;top:543px;width :215px;height:104px;z-index:21;" align="center">
<a href="http://www.echotown.co.uk/unisexstandard.jpg" target="_blank"><img src="images/tshirt01074.gif" id="Shape6" align="top" alt="" title="" border="0" width="215" height="104"></a></div>
<div id="bv_Text1" style="position:absolute;left:323px;top:113px;widt h:485px;height:80px;z-index:22;" align="left">
<font style="font-size:13px" color="#000000" face="Arial"><b>CLICK T-SHIRT FOR A CLOSER LOOK.<br>
<br>
CLICK A COLOUR STRIP ON THE LEFT OF THE SCREEN FOR AN IDEA OF WHAT YOUR SHIRT WILL LOOK LIKE. COLOURS MAY VARY SLIGHTLY, BUT ALL PRINT WILL BE CRISP, DURABLE AND TO PROFESSIONAL STANDARD.</b></font></div>
<div id="bv_Shape7" style="position:absolute;left:31px;top:86px;width: 264px;height:318px;z-index:23;" align="center">
<a href="http://echotown.co.uk/tshirtenlarged.jpg" target="_blank"><img src="images/tshirt01075.gif" id="Shape7" align="top" alt="" title="" border="0" width="264" height="318"></a></div>
<div id="bv_Text3" style="position:absolute;left:323px;top:248px;widt h:485px;height:128px;z-index:24;" align="left">
<font style="font-size:13px" color="#000000" face="Arial"><b>WE, RIC AND ROB, WANT YOU TO PLACE YOUR ORDER AND GET THE QUANTITY, COLOUR AND STYLE YOU ARE HAPPY WITH. WE WOULD RATHER ORDER A SHIRT SPECIAL FOR <u>YOU</u> THAN HAVE YOU CHOOSE FROM A BUNCH WE ASSUMED YOU WOULD LIKE. <u>THIS IS FOR A LIMITED TIME ONLY. WE CAN ONLY FULFILL SPECIAL ORDERS WHEN YOU USE THIS ORDER FORM. THERE IS NO PAYMENT NOW, THIS IS A PRE-ORDER FORM. BUT PLEASE ONLY PLACE AN ORDER IF YOU WILL DEFINITELY PURCHASE THE SHIRT AND SUPPORT US. </u></b></font></div>
<div id="bv_Form1" style="position:absolute;left:321px;top:404px;widt h:499px;height:259px;z-index:25;" align="left">
<form name="tshirtorder" method="POST" action="<? echo($_SERVER['PHP_SELF']);?>" enctype="application/x-www-form-urlencoded" id="Form1">
<div id="bv_Text4" style="position:absolute;left:10px;top:15px;width: 101px;height:19px;z-index:0;" align="left">
<font style="font-size:16px" color="#000000" face="Arial"><b>Name:</b></font></div>
<input type="text" id="Editbox1" style="position:absolute;left:121px;top:15px;width :300px;font-family:Arial;font-size:16px;z-index:1" name="Name" value="">
<div id="bv_Text5" style="position:absolute;left:10px;top:44px;width: 101px;height:19px;z-index:2;" align="left">
<font style="font-size:16px" color="#000000" face="Arial"><b>E-mail:</b></font></div>
<input type="text" id="Editbox2" style="position:absolute;left:121px;top:44px;width :300px;font-family:Arial;font-size:16px;z-index:3" name="email" value="">
<div id="bv_Text6" style="position:absolute;left:10px;top:73px;width: 101px;height:19px;z-index:4;" align="left">
<font style="font-size:16px" color="#000000" face="Arial"><b>Style:</b></font></div>
<select name="Style" size="1" id="Combobox1" style="position:absolute;left:121px;top:73px;width :200px;font-family:Arial;font-size:16px;z-index:5">
<option>Men's Slim Fit</option>
<option>Women's Slim Fit</option>
<option>Unisex Standard Fit (kids inc)</option>
</select>
<div id="bv_Text7" style="position:absolute;left:10px;top:102px;width :101px;height:19px;z-index:6;" align="left">
<font style="font-size:16px" color="#000000" face="Arial"><b>Size:</b></font></div>
<select name="Size" size="1" id="Combobox2" style="position:absolute;left:121px;top:102px;widt h:200px;font-family:Arial;font-size:16px;z-index:7">
<option>Youth Medium (Standard Fit Only)</option>
<option>Young Large (Standard Fit Only)</option>
<option>Small</option>
<option>Medium</option>
<option>Large</option>
<option>XL</option>
<option>XXL</option>
</select>
<div id="bv_Text8" style="position:absolute;left:10px;top:131px;width :101px;height:19px;z-index:8;" align="left">
<font style="font-size:16px" color="#000000" face="Arial"><b>Colour:</b></font></div>
<select name="Colour" size="1" id="Combobox3" style="position:absolute;left:121px;top:131px;widt h:56px;font-family:Arial;font-size:16px;z-index:9">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
<div id="bv_Text9" style="position:absolute;left:10px;top:160px;width :101px;height:19px;z-index:10;" align="left">
<font style="font-size:16px" color="#000000" face="Arial"><b>Quantity:</b></font></div>
<select name="Quantity" size="1" id="Combobox4" style="position:absolute;left:121px;top:160px;widt h:55px;font-family:Arial;font-size:16px;z-index:11">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
</select>
<div id="bv_Text10" style="position:absolute;left:10px;top:189px;width :101px;height:38px;z-index:12;" align="left">
<font style="font-size:16px" color="#000000" face="Arial"><b>Additional Notes:</b></font></div>
<textarea name="Notes" id="TextArea1" style="position:absolute;left:121px;top:189px;widt h:239px;height:63px;font-family:Arial;font-size:16px;z-index:13" rows="2" cols="29">You can place an addtional
order here, or specify different
colours to match your quantity</textarea>
<input type="submit" id="Button1" name="Submit" value="Pre-Order" style="position:absolute;left:378px;top:220px;widt h:96px;height:25px;font-family:Arial;font-size:13px;z-index:14">
</form>
</div>
<iframe name="InlineFrame1" id="InlineFrame1" style="position:absolute;left:0px;top:0px;width:77 2px;height:128px;z-index:26;" src="http://www.echotown.co.uk/menu.html" scrolling="no" frameborder="0" allowtransparency="true" background-color="transparent"
>Your browser does not support inline frames or is currently configured not to display inline frames.</iframe>
</div>
</body>
</html>
Comment
-
Comment