What did I do rong???
Hi again
what is rong with the code on my webpage http://members.xoom.com/joshuals/email.htm
why is the last part of the code in the large text box?
and will the whole thing work ?
Josh
------------------
JLS (Joshua Lee Simpson)
Jim Shilt posted this at 04:03 — 9th January 2000.
They have: 268 posts
Joined: May 1999
You need to close your textarea tag
Like this
My goal in life is found in Phillipians 4:8-9
shoutingrock.org/troop214
tazman posted this at 21:10 — 9th January 2000.
They have: 99 posts
Joined: May 1999
Try this code
-didnt check your action command
-added submit button
<!DOCTYPE HTML PUBLIC "-//SoftQuad Software//DTD HoTMetaL PRO 5.0::19981217::extensions to HTML 4.0//EN" "hmpro5.dtd">
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<!-- Copy this code into the HEAD of your HTML document -->
<!-- Web site: http://www.geocities.com/SiliconValley/Heights/8583/ -->
<!-- Begin
function everything(form) {
isName(form)
isEmail(form)
isHomepage(form)
isComments(form)
allblanks(form)
}
function allblanks(form) {
if((isName(form) && isEmail(form)) && (isHomepage(form) && isComments(form))) {
form.submit()
}
if((isName(form) == false | | isEmail(form) == false) | | (isHomepage(form) == false | | isComments(form) == false)) {
compose(form)
}
}
function compose(form) {
var text = "You forgot to fill in correctly:"
if(isName(form) == false) {
text += "\nyour name"
}
if(isEmail(form) == false) {
text += "\nyour e-mail address"
}
if(isHomepage(form) == false) {
text += "\nyour homepage's url"
}
if (isComments(form) == false) {
text += "\nyour comments"
}
alert(text)
}
function isName(form) {
if (form.yourname.value == "") {
return false
}
else {
return true
}
}
function isEmail(form) {
if ((form.email.value == "" | | form.email.value.indexOf('@', 0) == -1) | | form.email.value.indexOf('.') == -1) {
return false
}
else {
return true
}
}
function isHomepage(form) {
if ((form.homepage.value == "" | | form.homepage.value.indexOf("http://") == -1) | | form.homepage.value.indexOf(".") == -1) {
return false
}
else {
return true
}
}
function isComments(form) {
if(form.cs.value == "") {
return false
}
else {
return true
}
}
// End -->
</SCRIPT>
<!-- END OF SCRIPT -->
<TITLE>Josh's Home Page</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#ffff00" LINK="#009933" VLINK="cc3300">
<CENTER>
<FONT FACE="comic sans ms" COLOR="#ffff00"><IMG SRC="title.jpg"></FONT>
</CENTER>
<CENTER>
<FORM NAME="kurt" METHOD="post"
ACTION="mailto:[email protected]?subject=Form">
<P> </P>
<DL>
<DT>Name: </DT>
<DD>
<INPUT TYPE="text" VALUE="" NAME="yourname" SIZE="30">
<P> </P>
</DD>
<DT>E-mail: </DT>
<DD>
<INPUT TYPE="text" VALUE="" NAME="email" SIZE="30">
<P> </P>
</DD>
<DT>Your homepage: (begin with [url=http://)]http://)[/url] </DT>
<DD>
<INPUT TYPE="text" VALUE="http://" NAME="homepage" SIZE="60">
<P> </P>
</DD>
<DT>Suggestion(s)/Comment(s) </DT>
<DD>
<TEXTAREA ROWS="7" COLS="60" NAME="cs">
</TEXTAREA>
<CENTER>
<IMG SRC="seperater_bar_long.jpg">
</CENTER>
<P>
<INPUT TYPE="SUBMIT" NAME="Submit1" VALUE="Email Now!"></P>
</DD>
</DL>
</FORM>
</CENTER>
</BODY>
</HTML>
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.