Freepages-Help-L Archives
Archiver > Freepages-Help > 2005-09 > 1127202449
From: Terry Winchester <>
Subject: Re: Freepages-Help-D Digest V05 #310
Date: Tue, 20 Sep 2005 00:47:29 -0700 (PDT)
In-Reply-To: <200509200701.j8K711mP004690@lists2.rootsweb.com>
Jackie, If I understand correctly, you can paste the following into your page (obviosly, edit the choices I give):
<HTML>
<HEAD>
<script language="javascript">
<!--
function RadioCheckboxForm(thisform) {
if ( !thisform.city[0].checked &&
!thisform.city[1].checked &&
!thisform.city[2].checked &&
!thisform.city[3].checked ) {
alert("Please select a City!")
return false
}
var citychecked = null
if (thisform.city[0].checked) {
citychecked = "Houston"
}
if (thisform.city[1].checked) {
citychecked = "Detroit"
}
if (thisform.city[2].checked) {
citychecked = "Atlanta"
}
if (thisform.city[3].checked) {
citychecked = "New York"
}
alert ("You selected " + citychecked)
//=======checkboxes=====================
if (!thisform.sports.checked && !thisform.tv.checked) {
alert("Please Check either Sports or TV.")
return false
}
else {
if (thisform.sports.checked) {
alert("You check Sports!")
}
if (thisform.tv.checked) {
alert("You checked TV!")
}
}
return false // normally this will be true or removed
}
-->
</script>
</HEAD>
<BODY>
<form name="radiocheckboxform" onsubmit="return RadioCheckboxForm(radiocheckboxform)">
<B>Select A City:</B>
<br>
<Input type="radio" name="city" value="Houston"> Houston
<Input type="radio" name="city" value="Detroit"> Detroit
<Input type="radio" name="city" value="Atlanta"> Atlanta
<Input type="radio" name="city" value="New York"> New York
<p>
<B>Please check one of these boxes:</B>
<br>
<input type="checkbox" name="sports"> Sports <input type="checkbox" name="tv"> TV
<p>
<input type="submit" value="Submit"> <input type="reset" value="Reset Form">
</form>
</BODY>
</HTML>
______________________________Date: Mon, 19 Sep 2005 08:40:07 EDT
From:
To:
Subject: Re: Freepages-Help-D Digest V05 #309
MailMerge:
At the request of some of my site users, I agreed to add a "Genealogical
Data Worksheet" for people to fill out and submit online, and I finally finished
putting the html form page together.
I created a .txt (ascii) page to specify the data be e-mailed to me, as
opposed to being put in a directory file. On the ascii text page that is the
second half of the "merge" process, I have a few questions I can't find answers
to in "MailMerge on Freepages":
How do I provide for radio button responses? Is there an "if clicked"
directive, or is just listing all possible selections between "@" sufficient?
In the "Mail Merge on Freepages" directions, in the example template, the
last line (under "# This is the e-mail header") reads:
x-form-location: @referer@
but I have nothing named "referer" anywhere in my form which matches this
line.
Thanks.
Jackie Chute
_http://freepages.genealogy.rootsweb.com/~chute_
(http://freepages.genealogy.rootsweb.com/~chute)
With Kind Regards,
Terry Winchester
Terry Winchester
---------------------------------
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
This thread:
| Re: Freepages-Help-D Digest V05 #310 by Terry Winchester <> |