Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Force agree to conditions on reverse engineered application form


mintpeel

Recommended Posts

Posted

Hi,

 

Could anybody help me with this problem, I have reverse engineered the contact us form into an application form, but i want to add a tick box that has to be ticked for the applicant to proceed, basically a must agree to terms and conditions tick box.

 

So far I am working on adding the code in a ad hoc fashion; from a contribution to my current form, but have hit a wall. Everything is done exepct applicants can still post the form without ticking the box, in other words i need to add a return false instruction, if someone could show me where to add it and the code to use i would be most grateful!!!

 

Here is the code for the form.

<?php
/*
 $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

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

 $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']);
$home_address = tep_db_prepare_input($HTTP_POST_VARS['home_address']);
$artist_name = tep_db_prepare_input($HTTP_POST_VARS['artist_name']);
$bio = tep_db_prepare_input($HTTP_POST_VARS['bio']);
$cd_title = tep_db_prepare_input($HTTP_POST_VARS['cd_title']);
$tracklisting = tep_db_prepare_input($HTTP_POST_VARS['tracklisting']);
$production = tep_db_prepare_input($HTTP_POST_VARS['production']);
$price = tep_db_prepare_input($HTTP_POST_VARS['price']);
$genre = tep_db_prepare_input($HTTP_POST_VARS['genre']);
$mood = tep_db_prepare_input($HTTP_POST_VARS['mood']);
$Hear = tep_db_prepare_input($HTTP_POST_VARS['hear']);


if (tep_validate_email($email_address)) {
  tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $name, $name, $name . "\n\n" .  $email_address . "\n\n" . $home_address . "\n\n" . $artist_name . "\n\n" . $bio . "\n\n" . $cd_title . "\n\n" . $tracklisting . "\n\n" . $production . "\n\n" . $price . "\n\n" . $genre. "\n\n" . $mood . "\n\n" . $Hear . "\n\n" . $terms);

  tep_redirect(tep_href_link(FILENAME_APPLY, 'action=success'));
} else {
  $error = true;

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

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_APPLY));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<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">

<!--Start confirmation script -->

<script LANGUAGE="JavaScript">
function checkCheckBox(f){
if (f.agree.checked == false )
{
alert('<?php echo CONDITION_AGREEMENT_WARNING; ?>');
return false;
}else
return true;
}
</script>

<!--Start confirmation script -->

</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_APPLY, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 if ($messageStack->size('contact') > 0) {
?>
  <tr>
	<td><?php echo $messageStack->output('contact'); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 }

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>
  <tr>
	<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>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><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_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
<?php
 } else {
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td class="main"><?php echo ENTRY_NAME; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('name'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_EMAIL; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('email'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_HOME_ADDRESS; ?></td>
		  </tr>
		   <tr>
			 <td><?php echo tep_draw_textarea_field('home_address', 'soft', 50, 5); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_ARTIST_NAME; ?></td>
		  </tr>
		  <tr>
		  <td><?php echo tep_draw_textarea_field('artist_name', 'soft', 50, 2); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_BIO; ?></td>
		  </tr>
		   <tr>
			<td><?php echo tep_draw_textarea_field('bio', 'soft', 50, 10); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_CD_TITLE; ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_draw_textarea_field('cd_title', 'soft', 50, 2); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_TRACKLISTING; ?></td>
		  </tr>
		   <tr>
			<td><?php echo tep_draw_textarea_field('tracklisting', 'soft', 50, 8); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_PRODUCTION; ?></td>
		  </tr>
		   <tr>
			<td><?php echo tep_draw_textarea_field('production', 'soft', 50, 2); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_PRICE; ?></td>
		  </tr>
		   <tr>
			<td class="main"><?php echo tep_draw_input_field('price'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_GENRE; ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_draw_textarea_field('genre', 'soft', 50, 1); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_MOOD; ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_draw_textarea_field('mood', 'soft', 50, 1); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_HEAR; ?></td>
		  </tr>
		  <tr>
		  <td class="main"><?php echo tep_draw_input_field ('hear'); ?></td>
		  </tr>

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

  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>

  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><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 class="main" align="right"> <?php echo CONDITION_AGREEMENT; ?> <input type="checkbox" value="0" name="agree"></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>

  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>

  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><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 tep_image_submit('button_send.gif', IMAGE_BUTTON_SEND); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
<?php
 }

?>



</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Posted

1. Its better to use the build-in tep_draw functions for the fields (tep_draw_checkbox_field)

2. Check after the redirect instead of the js and check the posted values

 

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

 

And check the state of the $agree var in php.

 

if (tep_validate_email($email_address) && $agree == true) {

 

so something like this will work

Posted
1. Its better to use the build-in tep_draw functions for the fields (tep_draw_checkbox_field)

2. Check after the redirect instead of the js and check the posted values

 

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

 

And check the state of the $agree var in php.

 

if (tep_validate_email($email_address) && $agree == true) {

 

so something like this will work

 

Fantastic, thanks for you help, your approach is much simpler, the scary thing is I understand it!

Posted

Right that works, however the error message that comes up when you do not tick the box is the error message defined for a non valid email address.

 

I have tracke it down to this code

} else {
  $error = true;

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

 

So how do i make it so the error message is correct for the type of error?

 

This is the current code

 if (tep_validate_email($email_address)&& $agree == true) {

 

I have added a new define to the english php like so

 

define('ENTRY_AGREE_CHECK_ERROR', 'You have not agreed to the terms please do so to continue');

 

Thankyou in advance to any help you can offer.

 

Dan :D

Posted

yes do a 2nd if assigning the error flag so:

 

	if (!$agree) {
  $error = true;
  $messageStack->add('contact', ENTRY_AGREE_CHECK_ERROR);
}

if (!tep_validate_email($email_address)) {
  $error = true;
  $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}

if (!$error)) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $name, $name, $name . "\n\n" . $email_address . "\n\n" . $home_address . "\n\n" . $artist_name . "\n\n" . $bio . "\n\n" . $cd_title . "\n\n" . $tracklisting . "\n\n" . $production . "\n\n" . $price . "\n\n" . $genre. "\n\n" . $mood . "\n\n" . $Hear . "\n\n" . $terms);

tep_redirect(tep_href_link(FILENAME_APPLY, 'action=success'));
}

 

So you could add more "if" conditions this way

Posted
yes do a 2nd if assigning the error flag so:

 

	if (!$agree) {
  $error = true;
  $messageStack->add('contact', ENTRY_AGREE_CHECK_ERROR);
}

if (!tep_validate_email($email_address)) {
  $error = true;
  $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}

if (!$error)) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $name, $name, $name . "\n\n" . $email_address . "\n\n" . $home_address . "\n\n" . $artist_name . "\n\n" . $bio . "\n\n" . $cd_title . "\n\n" . $tracklisting . "\n\n" . $production . "\n\n" . $price . "\n\n" . $genre. "\n\n" . $mood . "\n\n" . $Hear . "\n\n" . $terms);

tep_redirect(tep_href_link(FILENAME_APPLY, 'action=success'));
}

 

So you could add more "if" conditions this way

 

 

Nice one Enigma we all done! just have to write those terms now...lol.

 

P.S there was one to many ) in the final string

 

this gets a parse error

if (!$error)) {

 

this works a treat

if (!$error) {

 

However i have no idea what this means, i thought it might be useful to you though since you do know what it means. :thumbsup:

 

Thanks again Enigma

 

Dan

Posted

yes I keep missing or adding extra brackets :D probably need to lower my screen res. :blink:

Posted

Here is a puzzling one, that made me laugh, after implementing the following code for the force agree to terms, once the terms have been agreed and the form has been sent off, application success, the text size on the site is randomly changed to a different size! :D

 

Engima if you come across this thread feel free to try out test using oscommerce test as your name

 

Here is the final code

<?php
/*
 $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

 require('includes/application_top.php');

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

 $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']);
$home_address = tep_db_prepare_input($HTTP_POST_VARS['home_address']);
$artist_name = tep_db_prepare_input($HTTP_POST_VARS['artist_name']);
$bio = tep_db_prepare_input($HTTP_POST_VARS['bio']);
$cd_title = tep_db_prepare_input($HTTP_POST_VARS['cd_title']);
$tracklisting = tep_db_prepare_input($HTTP_POST_VARS['tracklisting']);
$production = tep_db_prepare_input($HTTP_POST_VARS['production']);
$price = tep_db_prepare_input($HTTP_POST_VARS['price']);
$genre = tep_db_prepare_input($HTTP_POST_VARS['genre']);
$mood = tep_db_prepare_input($HTTP_POST_VARS['mood']);
$Hear = tep_db_prepare_input($HTTP_POST_VARS['hear']);
$agree = tep_db_prepare_input($HTTP_POST_VARS['agree']);

if (!$agree) {
$error = true;
$messageStack->add('contact', ENTRY_AGREE_CHECK_ERROR);
 }

if (!tep_validate_email($email_address)) {
$error = true;
$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}

if (!$error) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $name, $name, $name . "\n\n" .  $email_address . "\n\n" . $home_address . "\n\n" . $artist_name . "\n\n" . $bio . "\n\n" . $cd_title . "\n\n" . $tracklisting . "\n\n" . $production . "\n\n" . $price . "\n\n" . $genre. "\n\n" . $mood . "\n\n" . $Hear . "\n\n" . $terms);

  tep_redirect(tep_href_link(FILENAME_APPLY, 'action=success'));
} 
}

 $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_APPLY));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<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 language="javascript" src="includes/general.js"></script>
<script language="javascript"><!--

function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,re
sizable=yes,copyhistory=no,width=450,height=415,screenX=150,screenY=150,top=150,l
eft=150')
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
 <tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_APPLY, 'action=send')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
	<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
	  <tr>
		<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
		<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_contact_us.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 if ($messageStack->size('contact') > 0) {
?>
  <tr>
	<td><?php echo $messageStack->output('contact'); ?></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
<?php
 }

 if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
?>
  <tr>
	<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>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><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_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
<?php
 } else {
?>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>
			<td class="main"><?php echo ENTRY_NAME; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('name'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_EMAIL; ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo tep_draw_input_field('email'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_HOME_ADDRESS; ?></td>
		  </tr>
		   <tr>
			 <td><?php echo tep_draw_textarea_field('home_address', 'soft', 50, 5); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_ARTIST_NAME; ?></td>
		  </tr>
		  <tr>
		  <td><?php echo tep_draw_textarea_field('artist_name', 'soft', 50, 2); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_BIO; ?></td>
		  </tr>
		   <tr>
			<td><?php echo tep_draw_textarea_field('bio', 'soft', 50, 10); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_CD_TITLE; ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_draw_textarea_field('cd_title', 'soft', 50, 2); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_TRACKLISTING; ?></td>
		  </tr>
		   <tr>
			<td><?php echo tep_draw_textarea_field('tracklisting', 'soft', 50, 8); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_PRODUCTION; ?></td>
		  </tr>
		   <tr>
			<td><?php echo tep_draw_textarea_field('production', 'soft', 50, 2); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_PRICE; ?></td>
		  </tr>
		   <tr>
			<td class="main"><?php echo tep_draw_input_field('price'); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_GENRE; ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_draw_textarea_field('genre', 'soft', 50, 1); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_MOOD; ?></td>
		  </tr>
		  <tr>
		   <td><?php echo tep_draw_textarea_field('mood', 'soft', 50, 1); ?></td>
		  </tr>
		  <tr>
			<td class="main"><?php echo ENTRY_HEAR; ?></td>
		  </tr>
		  <tr>
		  <td class="main"><?php echo tep_draw_input_field ('hear'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
   <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>

  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
		  <tr>

			 <td class="main" align="left"> <?php echo ENTRY_AGREE; ?> </td></tr>
			 <tr><td class="main" align="left"><?php echo tep_draw_checkbox_field ('agree', '1' ); ?></td></tr>
			 <td class="smallText" align="left" valigin="bottom"><?php echo '<a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_POPUP_APPLICATION_TERMS) . '\')">' . TEXT_APPLICATION_TERMS_LINK . '</a>'; ?></td>
			 <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
   <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>
  <tr>
	<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
	  <tr class="infoBoxContents">
		<td><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 tep_image_submit('button_send.gif', IMAGE_BUTTON_SEND); ?></td>
			<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
		  </tr>
		</table></td>
	  </tr>
	</table></td>
  </tr>
<?php
 }
?>
</table></form></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

dan

Posted

I cannot replicate it here try it few times reloaded with action=success fonts and text remained the same.

Posted
I cannot replicate it here try it few times reloaded with action=success fonts and text remained the same.

 

you got action=sucess i havent recieved any emails from it!, oh dear!

 

I think i sorted the text size thing just cleaned up the code a bit, im not sure what it was but it seems to be ok now. Thanks for trying it out.

Posted

you received no email because I did not submit the regular way, just setup the page with the necessary parameters (ie action=success) to test the text/fonts. Probably you fixed it in the meantime?

Posted
you received no email because I did not submit the regular way, just setup the page with the necessary parameters (ie action=success) to test the text/fonts. Probably you fixed it in the meantime?

 

oh, sounds complicated, yeah its fixed but not sure how i did it i just cleaned the code up a bit. :D

 

cheers

Archived

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

×
×
  • Create New...