/    Sign up×
Community /Pin to ProfileBookmark

image input not / sorta working please check

Hi there,

I am working with image input for my choices on a form. I can see it semi working. The choices, once clicked, do not stay in their form field. If anyone is game please check my code.

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>

<body>
<form name=”form1″ method=”post” action=””>

<p><span class=”productheader”>BRACELETS </span> <span class=”productprice”>$17.00
USD each</span></p>
<table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td width=”9%” valign=”top” class=”productprice”> <div align=”right”>size&nbsp;</div></td>
<td width=”91%”><select name=”Size7″ id=”select5″>
<option>————— select ————— </option>
<option value=”6 in (Kids)”>6 in (Kids)</option>
<option value=”6.5 in (Small)”>6.5 in (Small)</option>
<option value=”7 in (Medium)”>7 in (Medium)</option>
<option value=”8.5 in (Large)”>8.5 in (Large)</option>
</select></td>
</tr>
<tr>
<td valign=”top” class=”productprice”> <div align=”right”>spacer&nbsp;</div></td>
<td><select name=”select2″>
<option>————— select ————— </option>
<option>alloy</option>
<option>rhinestone</option>
<option>all clay</option>
<option>silver plated</option>
</select></td>
</tr>
<tr>
<td valign=”top” class=”productprice”> <div align=”right”>color</div></td>
<td valign=”top”><input type=”text” name=”color”>
</td>
</tr>
<tr valign=”top”>
<td colspan=”2″> <img src=”images/colors_block_header.gif” width=”48″ height=”8″><br>
<table width=”300″ border=”0″ cellspacing=”2″ cellpadding=”0″>
<tr>
<td><div align=”center”>
<input type=”IMAGE” src=”images/sm_baseball.jpg” width=”30″ height=”30″ border=”0″ value=”baseball” name=”baseball” onClick=”(form.color.value=’baseball’)”>
</div></td>
<td><div align=”center”>
<input type=”IMAGE” src=”images/pinksoccer.jpg” width=”30″ height=”30″ border=”0″ value=”pinksoccer” name=”pinksoccer” onClick=”(form.color.value=’pink soccer’)”>
</div></td>
<td><div align=”center”>
<input type=”IMAGE” src=”images/soccer.jpg” width=”30″ height=”30″ border=”0″ value=”blacksoccer” name=”blacksoccer” onClick=”(form.color.value=’black soccer’)”>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><img src=”images/add_button.gif” width=”228″ height=”30″></td>
</tr>
</table>
<p> </form></p></td>

</body>
</html>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @plastic_chai spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...