Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

contact us page posting to blank page


Recommended Posts



I'm having an issue with the contact us page, i never modified the code, when i fill in the details, it post to blank page, it doesn't redirect to action=success, it stays on action=send.


Here is the code




$Id: contact_us.php 1739 2007-12-20 00:52:16Z hpdl $


osCommerce, Open Source E-Commerce Solutions



Copyright © 2003 osCommerce


Released under the GNU General Public License





require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);


$error = false;

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {

$name = tep_db_prepare_input($HTTP_POST_VARS['name']);

$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);

$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);


if (tep_validate_email($email_address)) {

tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);


tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));

} else {

$error = true;


$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);




$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US));


<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html <?php echo HTML_PARAMS; ?>>


<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

<META Name="Description" Content="Kissable Curves - Fun and Sexy Lingerie Boutique, we specialize in a wide variety of sizes and styles. Try something new today!">

<META Name="Keywords" Content="lingerie, bras, bra, panty, panties, babydolls, baby doll, corset, bustier, camisoles, chemises, teddy, teddies, lingerie gowns, garters, garter belts, hosiery, sleepwear, plus size lingerie, swimwear, intimate apparel">

<title><?php echo TITLE; ?></title>

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

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

<script type="text/javascript" src="iepngfix_tilebg.js"></script>

<style type="text/css">

.ie6_png {behavior: url("iepngfix.htc") }

.ie6_png img {behavior: url("iepngfix.htc") }

.ie6_png input {behavior: url("iepngfix.htc") }


<!--[if IE]>

<script type="text/javascript" src="ie_png.js"></script>

<script type="text/javascript">







<!-- header //-->

<?php $tab_sel = 7; ?>

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<!-- header_eof //-->


<!-- body //-->

<table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0">


<td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0">

<!-- left_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

<!-- left_navigation_eof //-->



<!-- body_text //-->

<td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php echo panel_top(); ?><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?>


<?php echo tep_draw_top();?>


<?php echo tep_draw_title_top();?>


<?php echo HEADING_TITLE; ?>


<?php echo tep_draw_title_bottom();?>


<?php echo tep_draw1_top();?>



if ($messageStack->size('contact') > 0) {


<table cellpadding="0" cellspacing="0" border="0">

<tr><td><?php echo $messageStack->output('contact'); ?></td></tr>



<?php echo tep_pixel_trans();?>





if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {


<table cellpadding="0" cellspacing="0" border="0">


<td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></td>




<?php echo tep_pixel_trans();?>


<?php /* echo tep_draw_infoBox2_top(); */?>


<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue1.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>




<?php /* echo tep_draw_infoBox2_bottom(); */?>



} else {


<?php echo tep_draw_top();?>


echo "<table border='0 width='100%' cellspacing='5' cellpadding='0'>";

echo "<tr>";

echo "<td>";

echo "<center><font size='2px'>Kissable Curves<br>P.O. Box 1116<br>Bellevue, NE 68005-1116<br>(402) 763-4862<br><a href='mailto:info@kissablecurves.com'>info@kissablecurves.com</a></font></center>";

echo "</td>";

echo "</tr>";



<?php echo tep_draw_infoBox_top(); ?>


<table border="0" width="100%" cellspacing="5" cellpadding="0" class="infoBox2_">


<td class="main"><?php echo ENTRY_NAME; ?></td>

<td class="main" style="width:100%;"><?php echo tep_draw_input_field('name'); ?></td>



<td class="main" style="white-space:nowrap;"><?php echo ENTRY_EMAIL; ?></td>

<td class="main"><?php echo tep_draw_input_field('email'); ?></td>



<td class="main"><?php echo ENTRY_ENQUIRY; ?></td>

<td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>




<?php echo tep_draw_infoBox_bottom(); ?>


<?php echo tep_pixel_trans();?>


<?php echo tep_draw_infoBox2_top();?>


<table border="0" width="100%" cellspacing="0" cellpadding="2">

<tr><td align="right"><?php echo tep_image_submit('button_continue1.gif', IMAGE_BUTTON_CONTINUE); ?></td></tr>



<?php echo tep_draw_infoBox2_bottom();?>






<?php echo tep_draw1_bottom();?>


<?php echo tep_draw_bottom();?>



<!-- body_text_eof //-->

<td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0">

<!-- right_navigation //-->

<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>

<!-- right_navigation_eof //-->




<!-- body_eof //-->


<!-- footer //-->

<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

<script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));


<script type="text/javascript">

try {

var pageTracker = _gat._getTracker("UA-12969767-1");


} catch(err) {}</script>



<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...