View Full Version : Submit/Reset Buttons


tarq
04-26-2003, 10:11 PM
Hiya can someone please check my code. Its for my guestbook and I tried to create images for use as the Sign and Reset the form buttons but they won't work. I have highlighted them in red so they are easy to find. THANKS.

<html>

<head>
<title>$first_name's Guestbook</title>
<style type="text/css">
<!--
body {scrollbar-face-color: #FF00FF; scrollbar-shadow-color: #FFFFFF; scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #FF00FF; scrollbar-darkshadow-color:#FF00FF; scrollbar-track-color: #FF00FF; scrollbar-arrow-color: #FFFFFF}
-->
</style>
</head>

<font face="lucida handwriting">
<body bgcolor="$gb_bak" text="$gb_color" link="$gb_link" vlink="$gb_vlink" alink="$gb_alink" $gb_background>

<p align="center"><b> </b></p>
<p><b>Welcome to $first_name's Guestbook,</b></p>
<hr>
<!--"GB COMMENTS"--><div align="left"><table border="0"><tr><td valign="top"><b>Name:</b></td><td valign="top"><b>$name</b></td></tr><tr><td valign="top"><b>E-Mail:</b></td><td valign="top"><b><a href="mailto:$mail">$mail</a></b></td></tr><tr><td valign="top"><b>URL:</b></td><td valign="top"><b><a href="$uri" target="_blank">$uri</a></b></td></tr><tr><td valign="top"><b>Comments:</b></td><td valign="top"><b>$comments</b></td></tr></table><hr><!--"GB COMMENTS"-->
<p>
<p><b>Add your comments to $first_name's Guestbook<br>
<font color="$gb_link">*</font> = Required</b></p>
<form method="POST">
<div align="left">
<table border="0" height="83">
<tr>
<td align="right" height="25" valign="top"><b><font color="$gb_link">*</font> Name:</b></td>
<td height="25" valign="top"><input type="text" name="name" size="55"></td>
</tr>
<tr>
<td align="right" height="25" valign="top"><b><font color="$gb_link">*</font> E-Mail:</b></td>
<td height="25" valign="top"><input type="text" name="email" size="55"></td>
</tr>
<tr>
<td align="right" height="13" valign="top"><b>Site URL: </b></td>
<td height="13" valign="top"><input type="text" name="url" size="55"></td>
</tr>
<tr>
<td align="right" height="4" valign="top"><b><font color="$gb_link">*</font> Comments:</b>
</td>
<td height="4" valign="top"><textarea rows="4" name="comments" cols="46"></textarea></td>
</tr>
</table>
</div>
<p><b><a href="javascript:document.form-name.submit()"><img src="http://www.mysite.net/becky/amanda/send.gif" border=0 alt="Sign Guestbook"></a><a href="javascript:document.form1.reset();document.form1.n amebox.focus()">
<img src="http://www.mysite.net/becky/amanda/reset.gif" border=0 alt="Oops Start Again!"></a>
</b></p>
<input type="hidden" name="guestbook_owner" value="$ENV{'QUERY_STRING'}">
</form>
</div>
$html
$service_name
</body>

</html>