...

View Full Version : Form submitting help please



viperben1
12-31-2005, 02:40 AM
hi im desperate. i only have very basic knowledge of java script and i know this is going to be something really simple but i just cannot see the problem.
if anyone can help i would greatly appreciate this.

i have a code that works on its own but when i place it in my page it simply doesnt i dont know why
i have pasted the whole page as i think it is a conflicting error between different parts of the page.

obviously u wont be able to see the pictures but if your could help that would be great

the problem is with the final newsletter script i want to have a php action like indicated, everything is entered exactly how it is meant to be but i get a problem with the java when i click submit???? HELP


thanks ben



<html>

<head>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ForTheLady.co.uk - Home Page - Welcome</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///C:/Program%20Files/Microsoft%20Office/OFFICE11/fpclass/animate.js">
</script>
<SCRIPT language="JavaScript">
function submitform()
{
document.news.submit();
}
</SCRIPT>
<script language="JavaScript">
<!--
function goToURL(form)
{

var myindex=form.dropdownmenu.selectedIndex
if(!myindex=="")
{
window.location.href=form.dropdownmenu.options[myindex].value;


}
}
//-->
</script>
</head>

<body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" onload="dynAnimation()" language="Javascript1.2">

<div align="center">
<table border="0" width="900" id="table3" cellspacing="0">
<tr>
<td colspan="3">
<p style="margin-top: 0; margin-bottom: 0">
<img border="0" src="logo5.gif" width="464" height="80" align="left"><form name="Title">
<p align="right" style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#DEBEDA">For Quick Navigation Select A
Section From The List Below</font></p>
<p align="right" style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
<p align="right" style="margin-top: 0; margin-bottom: 0">
<select name="dropdownmenu" size=1 onChange="goToURL(this.form)">
<option selected>
Select A Section From The List..
<option value="http://www.forthelady.co.uk/bras.htm">
BRAS
<option value="http://www.forthelady.co.uk/Lejaby.htm">
&nbsp;&nbsp;&nbsp;Lejaby
<option value="http://www.forthelady.co.uk/68.htm">
&nbsp;&nbsp;&nbsp;6ixty 8ight
<option value="http://www.forthelady.co.uk/gossard.htm">
&nbsp;&nbsp;&nbsp;Gossard
<option value="">
BRIEFS
<option value="http://www.forthelady.co.uk/Lejaby.htm">
&nbsp;&nbsp;&nbsp;Lejaby
<option value="http://www.forthelady.co.uk/68.htm">
&nbsp;&nbsp;&nbsp;6ixty 8ight
<option value="http://www.forthelady.co.uk/gossard.htm">
&nbsp;&nbsp;&nbsp;Gossard
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </D6>
</p>
</td>
</tr>
<tr>
<td colspan="3" height="5">
<p style="margin-top: 0; margin-bottom: 0"></td>
</tr>
<tr>
<td colspan="3" height="25" style="border-left-width: 1px; border-right-width: 1px; border-top: 1px solid #C0C0C0; border-bottom-width: 1px">
<p style="margin-top: 0; margin-bottom: 0" align="center">
<img border="0" src="homedark.gif" width="80" height="18" align="middle"> <a onmouseover="var img=document['fpAnimswapImgFP1'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img. src;" onmouseout="document['fpAnimswapImgFP1'].src=document['fpAnimswapImgFP1'].imgRolln" href="javascript:void(0)"><img border="0" src="contactwhite.gif" width="80" height="18" id="fpAnimswapImgFP1" name="fpAnimswapImgFP1" dynamicanimation="fpAnimswapImgFP1" lowsrc="contactlight.gif" align="middle"></a> <a onmouseover="var img=document['fpAnimswapImgFP2'];img.imgRolln=img.src;img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img. src;" onmouseout="document['fpAnimswapImgFP2'].src=document['fpAnimswapImgFP2'].imgRolln" href="javascript:void(0)"><img border="0" src="aboutwhite.gif" width="80" height="18" align="middle" id="fpAnimswapImgFP2" name="fpAnimswapImgFP2" dynamicanimation="fpAnimswapImgFP2" lowsrc="aboutlight.gif"></a></td>
</tr>
<tr>
<td colspan="3" bgcolor="#DEBEDA" height="21">
<p align="center" style="word-spacing: 0px; margin-top: 0; margin-bottom: 0">
<font face="Verdana" color="#FFFFFF" style="letter-spacing: 1px; font-weight: 700; text-transform:uppercase" size="1">
<a href="index.htm" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #B876AE" onmouseover="rollIn(this)" onmouseout="rollOut(this)" language="Javascript1.2">
<span style="text-decoration: none">BRAS</span></a>&nbsp; |&nbsp;
Briefs&nbsp; |&nbsp; Lingerie&nbsp; |&nbsp; Swimwear&nbsp; |&nbsp;
Sportswear&nbsp; |&nbsp; Hosiery&nbsp; |&nbsp; Bridal&nbsp; |&nbsp;
Shoes&nbsp; |&nbsp; Jewellery</font></td>
</tr>
<tr>
<td width="689" height="5" colspan="3">
<p></td>
</tr>
<tr>
<td bgcolor="#D1DDED" width="574" height="228" valign="top">
<p style="margin-top: 0; margin-bottom: 0">&nbsp;</td>
<td width="2" height="228">
<p style="margin-top: 0; margin-bottom: 0"></td>
<td width="198" height="396" rowspan="2" valign="top">
<p style="margin-top: 0; margin-bottom: 0">&nbsp;<p style="margin-top: 0; margin-bottom: 0">&nbsp;</td>
</tr>
<tr>
<td bgcolor="#9FB3C1" width="574" height="168" valign="top">
&nbsp;</td>
<td width="2" height="168">
</td>
</tr>
<tr>
<td colspan="3" height="5">
</td>
</tr>
<tr>
<td colspan="3" height="5">

<form name="news" method="post" action="newsletter.php">
Subscribe To Our Newsletter:
<input type='text' name='Email' size="20">
<A href="javascript: submitform()"><font color="#000000">Submit</font></A>
</form>

</td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;<p style="margin-top: 0; margin-bottom: 0">
<font face="Verdana" size="1" color="#C0C0C0">&#169; 2005 ForTheLady.co.uk
developed by <a href="http://www.webhive.org/"><font color="#C0C0C0">
WebHive.org</font></a></font></div>
</body>

</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum