Forums

This topic is locked

What code would be best?

Posted 14 Dec 2007 12:16:36
1
has voted
14 Dec 2007 12:16:36 James Reading posted:
Hi all,

i am currently adding radio buttons to my helpdesk page for the school. I originally made a scoll down box with the selected names in it, and as soon as someone selected a particular name it would once submit button has been pressed send it to that persons email address.

but i have been informed that they would like radio buttons instead, so i have placed the radio buttons in webpage and have given them appropriate names, but didn't know whether same concept applied and what code i would need to have it work with radio buttons instead?

this is the current code i have:

<div id="content">
<div class="feature">
<h3 align="center"><span class="style6"> </span></h3>
<p align="right"> </p>
<p align="center"> </p>
<form name="form1" method="get" action="formmail.asp">
<div align="center"><font size="3">I would like to contact: </font><font size="3" face="Times">
<select name="recipient" id="recipient" type="hidden">
<option>Choose IT Technician</option>
<option value="?@romsey.hants.sch.uk">Mr (NM)</option>
<option value="?@romsey.hants.sch.uk">Mr </option>
<option value="?@romsey.hants.sch.uk">Mr </option>
<option value="?@romsey.hants.sch.uk">I dont know which technician to use</option>
</select>
</p>

Cheers

J

Edited by - readeano on 14 Dec 2007 12:21:48

Replies

Replied 17 Dec 2007 17:54:09
17 Dec 2007 17:54:09 James Reading replied:
BUMP, anyone there?
Replied 18 Dec 2007 19:38:14
18 Dec 2007 19:38:14 Alan C replied:
HI
Read your post earlier, but I didn't respond as I saw formmail.asp - my experience is all php as I avoid anything MS as far as possible.
Not sure about the code, but I didn't like exposing the email addresses in the source of the page, from there they might be picked up by address harvesters.

Have a look at the way that radio buttons are passed back to the server when the submit button is pressed, if you search around you'll find something, here's one to get you started - all php though

www.webmasterworld.com/forum88/1302.htm

Hope that helps <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Reply to this topic