Jump to content

Recommended Posts

Posted (edited)

Hello,

 

I have an INQUIRY form that for some reason will not transmit any inquiries submitted. Link: http://tokyo-chef-institute.com/inquire.html

 

I wast old by ipage hosting service that for some reason the codes have been scrambled at my end.

 

The following is the page SOURCE CODES. Anyone happen to know where the problem lies? Thanks

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<META NAME=”description “ content=” “>

<META NAME=”keywords” content=” “>

<meta http-equiv=”Content-type” content=”text/html; charset=iso-8859-1”>

 

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>Contact</title>

<link href="style.css" media="screen" rel="stylesheet" type="text/css" />

<style type="text/css">

<!--

.style2 {

font-size: 12px;

font-family: Arial, Helvetica, sans-serif;

font-weight: bold;

}

.style11 {font-size: 10px}

.style14 {

font-size: 12px;

font-family: Arial, Helvetica, sans-serif;

color: #000000;

}

.style24 {color: #000000; font-size: 16px; font-family: Arial, Helvetica, sans-serif;}

.style26 {font-size: 18px}

-->

</style>

</head>

 

<body>

 

<span class="style26">

 

<!-- start -->

</span>

<div id="header">

<img src="images/banner.jpg"alt="Tokyo Chef Institute" >

</div>

 

<div class="style26" id="menu">

<ul>

<li><a href="index.html">HOME</a></li>

 

<li><a href="2ColumChefDiplomaCourse.html">CHEF DIPLOMA COURSE</a></li>

<li><a href="metropolisTokyo.html">METROPOLIS TOKYO</a></li>

<li><a href="tciAdvocate.html">TCI ADVOCATE</a></li>

<li><a href="location.html">LOCATION</a></li>

<li><a href="inquire.html">INQUIRE</a></li>

</ul>

 

</div>

<span class="style26">

<!-- end -->

 

</span>

<p align="center" class="style26"> </p>

<form id="contact" action="submit.php" method="post"><div>

<div align="center">

<table width="423" border="0" align="center" cellpadding="5" cellspacing="1" id="contact2" style="width: 425px;">

<tbody>

<tr>

 

<th colspan="2" class="style24">Inquire</th>

</tr>

<tr>

<td class="style2" width="132" align="right"><div align="right" class="style11">

<div align="right">NAME</div>

</div></td>

<td width="270">

<div align="left">

 

<input maxlength="35" name="textfield" size="35" type="text" />

</div></td>

</tr>

<tr>

<td class="style2" align="right"><div align="right" class="style11">

<div align="right">EMAIL</div>

</div></td>

<td>

 

<div align="left">

<input id="contact2" maxlength="40" name="contact2" size="40" type="text" />

</div></td>

</tr>

<tr>

<td class="style2" align="right"><div align="right" class="style11">

<div align="right">SUBJECT</div>

</div></td>

 

<td>

<div align="left">

<input id="contact3" maxlength="40" name="contact3" size="40" type="text" />

</div></td>

</tr>

<tr>

<td class="style2" height="133" align="right" valign="top">

<div>

<div align="right" class="style11">

 

<div align="right">COMMENTS</div>

</div>

</div>

</td>

<td>

<div align="left">

<textarea cols="40" rows="10" name="textarea"></textarea>

</div></td>

 

</tr>

<tr>

<td height="67"><div align="right"></div></td>

<td align="center" valign="top">

<div align="center">

<input name="Submit" type="submit" value="Submit" />

</div></td>

</tr>

</tbody>

 

</table>

</div>

<div align="center"></div>

</div>

</form>

<p align="center" class="style14">Copyright 2010 All rights reserved Tokyo Chef Institute</p>

</body>

</html>

Edited by seafoodcuisine
Posted

Also, your code is out of whack - add what's red and delete what's green:

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head> (should be here)

<META NAME=”description “ content=” “>

<META NAME=”keywords” content=” “>

<meta http-equiv=”Content-type” content=”text/html; charset=iso-8859-1”>

 

<html>

<head> (does not belong here)

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> (there's already one here)

<title>Contact</title>

<link href="style.css" media="screen" rel="stylesheet" type="text/css" />

<style type="text/css">

<!--

.style2 {

font-size: 12px;

font-family: Arial, Helvetica, sans-serif;

font-weight: bold;

}

.style11 {font-size: 10px}

.style14 {

font-size: 12px;

font-family: Arial, Helvetica, sans-serif;

color: #000000;

}

.style24 {color: #000000; font-size: 16px; font-family: Arial, Helvetica, sans-serif;}

.style26 {font-size: 18px}

-->

</style>

</head>

 

<body>

<span class="style26">

 

<!-- start -->

</span> - no point in this empty tag

<div id="header">

Posted

What's the code for submit.php because that file controls the sending of mail?

 

Wickham - Thanks for your input. Where do I find the codes for "submit.php"? Does ipage control it?

 

Regards

fishcuisine

Posted

Where do I find the codes for "submit.php"? Does ipage control it?

fishcuisine

Go into your FileManager and find submit.php - and no, they don't control it, you control the files that live in your account.

Posted

What's the code for submit.php because that file controls the sending of mail?

 

I FOUND THE CODE FOR submit.php below:

 

\n\n"; } // check for a recipient email address and check the validity of it // Thanks to Bradley miller (bradmiller@accesszone.com) for pointing // out the need for multiple recipient checking and providing the code. $recipient_in = split(',',$recipient); for ($i=0;$iI NEED VALID RECIPIENT EMAIL ADDRESS ($recipient_to_test) TO CONTINUE"); } } // This is because I originally had it require but too many people // were used to Matt's Formmail.pl which used required instead. if ($required) $require = $required; // handle the required fields if ($require) { // seperate at the commas $require = ereg_replace( " +", "", $require); $required = split(",",$require); for ($i=0;$iemail address is invalid"); $EMAIL = $email; } // check zipcodes for validity if (($ZIP_CODE) || ($zip_code)) { $zip_code = trim($zip_code); if ($ZIP_CODE) $zip_code = trim($ZIP_CODE); if (!ereg("(^[0-9]{5})-([0-9]{4}$)", trim($zip_code)) && (!ereg("^[a-zA-Z][0-9][a-zA-Z][[:space:]][0-9][a-zA-Z][0-9]$", trim($zip_code))) && (!ereg("(^[0-9]{5})", trim($zip_code)))) print_error("your zip/postal code is invalid"); } // check phone for validity if (($PHONE_NO) || ($phone_no)) { $phone_no = trim($phone_no); if ($PHONE_NO) $phone_no = trim($PHONE_NO); if (!ereg("(^(.*)[0-9]{3})(.*)([0-9]{3})(.*)([0-9]{4}$)", $phone_no)) print_error("your phone number is invalid"); } // check phone for validity if (($FAX_NO) || ($fax_no)) { $fax_no = trim($fax_no); if ($FAX_NO) $fax_no = trim($FAX_NO); if (!ereg("(^(.*)[0-9]{3})(.*)([0-9]{3})(.*)([0-9]{4}$)", $fax_no)) print_error("your fax number is invalid"); } // sort alphabetic or prepare an order if ($sort == "alphabetic") { uksort($HTTP_POST_VARS, "strnatcasecmp"); } elseif ((ereg('^order:.*,.*', $sort)) && ($list = explode(',', ereg_replace('^order:', '', $sort)))) { $sort = $list; } // prepare the content $content = parse_form($HTTP_POST_VARS, $sort); // check for an attachment if there is a file upload it if ($attachment_name) { if ($attachment_size > 0) { if (!$attachment_type) $attachment_type = "application/unknown"; $content .= "Attached File: ".$attachment_name."\n"; $fp = fopen($attachment, "r"); $attachment_chunk = fread($fp, filesize($attachment)); $attachment_chunk = base64_encode($attachment_chunk); $attachment_chunk = chunk_split($attachment_chunk); } } // check for a file if there is a file upload it if ($file_name) { if ($file_size > 0) { if (!ereg("/$", $path_to_file)) $path_to_file = $path_to_file."/"; $location = $path_to_file.$file_name; if (file_exists($path_to_file.$file_name)) $location = $path_to_file.rand(1000,3000).".".$file_name; copy($file,$location); unlink($file); $content .= "Uploaded File: ".$location."\n"; } } // second file (see manual for instructions on how to add more.) if ($file2_name) { if ($file_size > 0) { if (!ereg("/$", $path_to_file)) $path_to_file = $path_to_file."/"; $location = $path_to_file.$file2_name; if (file_exists($path_to_file.$file2_name)) $location = $path_to_file.rand(1000,3000).".".$file2_name; copy($file2,$location); unlink($file2); $content .= "Uploaded File: ".$location."\n"; } } // if the env_report option is on: get eviromental variables if ($env_report) { $env_report = ereg_replace( " +", "", $env_report); $env_reports = split(",",$env_report); $content .= "\n------ eviromental variables ------\n"; for ($i=0;$iJack's Formmail.php ".VERSION."!\n\n"; exit; } // <---------- THE END ----------> //

Posted

The code for submit.php looks incomplete. It starts with \n\n"; } which would be half way through a file. It should start with <?php and an opening brace { somewhere but there is probably a lot more missing.

 

Also it should end with ?>

 

Go back to where you got the code from and copy it again.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...