Hi
Could you give me some code to add to my form below to force the telephone field entry by my visitor?
Your help would be appreciated.
Thanks
Art
<?
require_once('php/include.php');
require_once(CLASS_PATH.'g_product.php');
if (!is_numeric($_REQUEST['id'])) {
echo 'The product ID is invalid.';
exit;
}
$g_product = new g_product();
if (!$g_product->get_for_id($_REQUEST['id'])) {
echo 'The product does not exist.';
exit;
}
$product = $g_product->get_object();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>:: RTO ::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="css/rto.css" rel="stylesheet" type="text/css">
</head>
<body>
<form name="form1" method="post" action="http://www.fouraster.com/cgi-bin/formmail.pl">
<input type="hidden" name="recipient" value="d.nicholas@rto.com,info@websites-uk.com,steven@fouraster.com">
<input type="hidden" name="subject" value="Requested Quote for <?= $product->get_name() ?>">
<input type="hidden" name="redirect" value="http://www.rto.com/pop-up-thankyou.php">
<form name="form1" method="post" action="pop-up-thankyou.php">
<input type="hidden" name="code" value="<?= $product->get_code() ?>">
<input type="hidden" name="product" value="<?= $product->get_description() ?>">
<table width="360" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="110" height="44" bgcolor="#182C54"><img src="images/logo1.gif" width="110" height="44"></td>
<td width="250" bgcolor="#182C54"> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="1" colspan="2"><img src="images/clr.gif" width="1" height="1"></td>
</tr>
<tr>
<td height="11"><img src="images/trading-co.gif" width="110" height="11"></td>
<td height="11" bgcolor="#0056A7"></td>
</tr>
<tr>
<td height="11" colspan="2">
<table width="360" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td align="center"><? if ($product->has_small_photo()) { ?><img src="<?= $product->get_small_photo_url() ?>" width="120" height="120"><? } ?></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center">
<table width="360" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="180" align="right" valign="top" class="bodytext">Name:</td>
<td width="180" valign="top" class="bluetext" align="left"><?= $product->get_name() ?></td>
</tr>
<tr>
<td width="180" align="right" valign="top" class="bodytext">Description:</td>
<td width="180" valign="top" class="bluetext" align="left"><?= nl2br($product->get_description()) ?></td>
</tr>
<tr>
<td align="right" valign="top" class="bodytext">Quantity required:</td>
<td valign="top" class="bluetext" align="left">
<input name="quantity" type="text" class="input">
</td>
</tr>
<tr>
<td align="right" valign="top" class="bodytext">Name:</td>
<td valign="top" class="bluetext" align="left">
<input name="name" type="text" class="input">
</td>
</tr>
<tr>
<td align="right" valign="top" class="bodytext">Company:</td>
<td valign="top" class="bluetext" align="left">
<input name="company" type="text" class="input">
</td>
</tr>
<tr>
<td align="right" valign="top" class="bodytext">Telephone:</td>
<td valign="top" class="bluetext" align="left">
<input name="telephone" type="text" class="input">
</td>
</tr>
<tr>
<td align="right" valign="top" class="bodytext">Email:</td>
<td valign="top" class="bluetext" align="left">
<input name="email" type="text" class="input">
</td>
</tr>
<tr>
<td align="left" valign="top" class="bodytext"><a href="#">Reset</a></td>
<td align="right" valign="top" class="bluetext"><input type="submit" value="Send"><!--<a href="javascript: document.form1.submit()"><strong>send</strong></a> <img src="images/arrow1.gif" width="5" height="7">--></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="13" align="left" bgcolor="#1E335B" class="bottomlinks">Copyright (C) RTO tags 2005, All rights reserved</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>