
come vedete nel file c'è un form che on line non si vede ,me lo mise un amico tempo fa ora mi serve ,ma non ricordo piu il link a cui accedervi ,dove posso trovarlo ? questo è il form on line www.bigmuscle.it/contact_us.php come vedete ha i campi originali ,ma nel file se vedete bene ci sono altri campi .in rosso.
-----------------------------------------------------------------
<?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_CONTACT_US);
$error = false;
if ((isset($_REQUEST['richiesta']))) {
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']);
$tel = tep_db_prepare_input($HTTP_POST_VARS['tel']);
$cognome = tep_db_prepare_input($HTTP_POST_VARS['cognome']);
$anni = tep_db_prepare_input($HTTP_POST_VARS['anni']);
$sesso = tep_db_prepare_input($HTTP_POST_VARS['sesso']);
$altezza = tep_db_prepare_input($HTTP_POST_VARS['alezza']);
$peso = tep_db_prepare_input($HTTP_POST_VARS['peso']);
$altro = tep_db_prepare_input($HTTP_POST_VARS['altro']);
if (tep_validate_email($email_address)) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, '<STRONG>Name:</STRONG> ' . $name . "\r\n" . '<STRONG>Cognome:</STRONG> ' . $cognome . "\r\n" . '<STRONG>Telelfono:</STRONG> ' . $tel . "\r\n" . '<STRONG>Sesso:</STRONG> ' . $sesso . "\r\n" . '<STRONG>Anni:</STRONG> ' . $anni . "\r\n" . '<STRONG>Altezza:</STRONG> ' . $altezza . "\r\n" . '<STRONG>Peso:</STRONG> ' . $peso . "\r\n" . "\r\n\r\n" . ' ' . $altro, $name, $email_address);
tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
} else {
$error = true;
$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}
}
} else {
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['domanda']);
$order_number = tep_db_prepare_input($HTTP_POST_VARS['order_number']);
if (tep_validate_email($email_address)) {
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, '<STRONG>Name:</STRONG> ' . $name . "\r\n" . '<STRONG>Order #:</STRONG> ' . $order_number . "\r\n\r\n" . ' ' . $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; ?>>
<head>
<?php
// Header Tag Controller
if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
require(DIR_WS_INCLUDES . 'header_tags.php');
} else {
?>
<title><?php echo TITLE; ?></title>
<?php
}
// EOF Header Tag Controller
?>
<base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //Updated by PVII. Reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</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">
<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 (isset($_REQUEST['richiesta']) ? "Richiedi la tua scheda d'allenamento Personalizzata" :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><table border="0" width="100%" cellspacing="0" cellpadding="2">
<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 align="right"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td>
</tr>
</table></td>
</tr>
<?php
} else {
?>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<? if ((!isset($_REQUEST['richiesta']))) { ?>
<tr class="infoBoxContents">
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="650" height="0"></td>
<td width="750"></td>
</tr>
<tr>
<td rowspan="10" valign="top">
<?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send')); ?>
<table width="100%" border="0" cellpadding="15" cellspacing="0">
<tr>
<td width="38" height="120" align="left" valign="top" class="main"><B><?php echo ENTRY_PHYSICAL_ADDRESS; ?></B>
</td>
<td width="334" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="333" height="120" align="left" valign="top" class="main">
<?php echo STORE_NAME; ?><br>
<?php echo ENTRY_STORE_ADDRESS; ?><br>
<?php echo ENTRY_STORE_SUBURB; ?><br>
<?php echo ENTRY_STORE_PROVINCE; ?><br>
<?php echo ENTRY_STORE_POSTAL_CODE; ?><br>
<?php echo ENTRY_STORE_COUNTRY; ?><br>
<?php echo ENTRY_STORE_MAILTEXT; ?><br /><br />
<?php echo ENTRY_STORE_STAFF; ?><br /><br />
</td>
</tr></table></td>
</tr></table></td>
<td height="40" valign="top" class="main"><?php echo ENTRY_NAME; ?><br>
<?php echo tep_draw_input_field('name'); ?></td>
</tr>
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="40" valign="top" class="main"><?php echo ENTRY_EMAIL; ?><br>
<?php echo tep_draw_input_field('email'); ?></td>
</tr>
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="40" valign="top" class="main"><?php echo ENTRY_ORDER_NUMBER; ?><br>
<?php echo tep_draw_input_field('order_number'); ?></td>
</tr>
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="250" valign="top" class="main"><?php echo ENTRY_ENQUIRY; ?><br>
<?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>
</tr>
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="41" colspan="2" align="left" class="main"><br> </td>
</tr>
</table></td></tr>
<? } else { ?>
<?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send&richiesta')); ?>
<tr class="infoBoxContents">
<td>
<table width="85%" border="0" align="center" cellpadding="5" cellspacing="5">
<tr>
<td width="315" height="0"><? tep_draw_hidden_field('richiesta', 'ok'); ?></td>
<td width="13"> </td>
<td width="420"> </td>
</tr>
<tr>
<td height="40" valign="top" class="main"><strong><?php echo ENTRY_NAME; ?></strong><br>
<?php echo tep_draw_input_field('name'); ?></td>
<td valign="top" class="main"> </td>
<td height="40" valign="top" class="main"><strong>Sesso</strong><br>
M
<input name="sesso" type="radio" value="M" checked>
F
<input name="sesso" type="radio" value="F"></td>
</tr>
<tr>
<td height="40" valign="top" class="main"><strong>Cognome</strong><br>
<?php echo tep_draw_input_field('cognome'); ?></td>
<td valign="top" class="main"> </td>
<td height="40" valign="top" class="main"><strong>Anni</strong><br>
<?php echo tep_draw_input_field('anni'); ?></td>
</tr>
<tr>
<td height="40" valign="top" class="main"><strong><?php echo ENTRY_EMAIL; ?></strong><br>
<?php echo tep_draw_input_field('email'); ?></td>
<td valign="top" class="main"> </td>
<td height="40" valign="top" class="main"><strong>Altezza</strong><br>
<?php echo tep_draw_input_field('altezza'); ?></td>
</tr>
<tr>
<td height="40" valign="top" class="main"><strong>Telefono</strong><br>
<?php echo tep_draw_input_field('tel'); ?></td>
<td valign="top" class="main"> </td>
<td height="40" valign="top" class="main"><strong>Peso</strong><br>
<?php echo tep_draw_input_field('peso'); ?></td>
</tr>
<tr>
<td height="250" colspan="3" valign="top" class="main"><strong>Altri dettagli Utili ( misure corporee, allenamento svolto,alimentazione tipo) </strong><br>
<textarea name="altro" cols="100%" rows="15"></textarea> </td>
</tr>
<tr>
<td height="41" colspan="3" valign="top" class="main"> </td>
</tr>
</table>
</td></tr>
<? } ?>
</table>
</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_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</form>
<?php
}
?>
</table></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'); ?>