Forums

This topic is locked

form doesnt work

Posted 26 Mar 2007 21:19:28
1
has voted
26 Mar 2007 21:19:28 Alex Chevchenko posted:
can someone help me.....or tell me what is wrong with this form code............because it makes the name, email and phone boxes yellow and the other two are white...ive been stuck on this for a long time now can someone please help me.....and my "thanks page is not working when i go to submit for a test, it takes me to a OOPS PAGE NOT FOUND page ....so can someone please tell me what is wrong with this code and what i should fix..
Thank You..............................................................................................


<form action="/gdform.asp" onsubmit="MM_validateForm('name','','R','zip','','NisNum','phone','','R','e-mail','','RisEmail');return document.MM_returnValue"> <input type="hidden" name="redirect" value="../thanks.html"/>
<fieldset>
<legend><b>Request Information</b></legend>
<label for="name">Name:</label><br/> <input name="name" type="text" value="" size="20" maxlength="30" /><br/>
<label for="phone">Phone:</label><br/> <input name="phone" type="text" id="phone" size="20" maxlength="15" /><br/>
<label for="email">Email:</label><br/> <input name="email" type="text" id="email" size="20" maxlength="30" /><br/>
<label for="website">WebSite:</label><br/> <input name="website" type="text" id="website" size="20" maxlength="30" /><br/>
<label for="desiredresults">Desired Results:</label><br/>
<textarea name="5_desiredresults" cols="20" rows="6" id="desiredresults"></textarea><br/>
<input name="submit" type="submit" value="Submit" />
</fieldset>
</form>

Replies

Replied 27 Mar 2007 03:14:28
27 Mar 2007 03:14:28 Javier Castro replied:
It's not the form that is the problem. Probably you have a CSS dictation the color of your cells. post the whole page code to see if that's the case.
Replied 27 Mar 2007 03:17:35
27 Mar 2007 03:17:35 Alex Chevchenko replied:
HERES THE PAGE

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Business Tachnical Solutions</title>
<!-- TemplateEndEditable -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../v2/default.css" rel="stylesheet" type="text/css" />

<!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
<style type="text/css">
<!--
body {
margin-top: 0px;
}
-->
</style></head>
<body>
<div id="header">
<img src="../v2/images/bts_top.gif" alt="Business Technical Solutions" width="780" height="100" /></div>
<div id="menu">
<ul>
<li><a href="/" accesskey="1" title="">Home</a></li>
<li><a href="../internetmarketing.html" accesskey="2" title="">Internet Marketing</a></li>
<li><a href="www.securepaynet.net/gdshop/rhp/default.asp?prog_id=419502" accesskey="3" title="">Hosting</a></li>
<li><a href="../seo-training.html" accesskey="4" title="">Training</a></li>
<li><a href="../about-us.html" accesskey="5" title="">About us</a></li>
<li><a href="../contact-us.html" accesskey="6" title="">Contact</a></li>
</ul>
</div>
<div id="content">
<div id="colOne">
<form name="form1" method="post" action="/gdform.asp">
<fieldset>
<legend><b>Request Information</b></legend>
<label for="name">Name:</label><br/> <input name="name" type="text" id="name" size="20" maxlength="30" /><br/>
<label for="phone">Phone:</label><br/> <input type="text" name="phone" size="20" maxlength="30"><br>
<label for="website">WebSite:</label><br/> <input name="website" type="text" id="website" size="20" maxlength="30" /><br/>
<label for="website">WebSite:</label><br/> <input name="website" type="text" id="website" size="20" maxlength="30" /><br/>
<label for="desiredresults">Desired Results:</label><br/>
<textarea name="desiredresults" cols="20" rows="6" id="desiredresults"></textarea><br/>
<input name="submit" type="submit" value="Submit" />
</fieldset>
</form>

<p><img src="../v2/images/engine.gif" alt="Internet Marketing"/></p>
</div>
<!-- TemplateBeginEditable name="body" -->
<div id="colTwo"> </div>
<!-- TemplateEndEditable -->
<div id="colThree"> <img src="../v2/images/seo.GIF" alt="Search Engine Optimization Specialist" width="120" height="800" /> </div>
<div style="clear: both;"> </div>
</div>
<div id="footer">
<p>Copyright © Business Technical Solutions. Designed by <a href="www.businesstechnicalsolutions.com/"><strong>BusinessTechnicalSolutions</strong></a></p>
</div>
</body>
</html>





AND THIS IS THE CSS TO THE FORM:

label
{
width: 4em;
text-align: left;
}

input text
{
color: #ececec;
border: 1px solid #acacac;
}

fieldset {
border: 1px solid #730000;
width: 14em;
padding-left: .2em;
}

legend
{
color: #000;
background: #d7d7d7;
border: 1px solid #d7d7d7;
padding: 2px 6px
}

Replied 27 Mar 2007 09:32:48
27 Mar 2007 09:32:48 Lee Diggins replied:
Hi Alex

Regarding the yellow and white boxes, do you have Google toolbar installed? Autofill turned on?

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Replied 27 Mar 2007 14:36:44
27 Mar 2007 14:36:44 Alex Chevchenko replied:
i have the google tool bar installed yes and im not sure what the autofill is
Replied 27 Mar 2007 15:06:48
27 Mar 2007 15:06:48 Lee Diggins replied:
Hi Alex

The autofill option in Google toolbar allows you to automatically fill in your personal details, the toolbar changes the background colour of fields it can complete in a form. Go to options on the toolbar and turn Autofill off and refresh the page, you'll see them all as white.

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Replied 27 Mar 2007 15:29:14
27 Mar 2007 15:29:14 Alex Chevchenko replied:
WOW THANKS ALOT YOURE THE MAN!!!
Replied 27 Mar 2007 15:40:52
27 Mar 2007 15:40:52 Lee Diggins replied:
The first time I installed it way back, I scratched my head too <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Replied 27 Mar 2007 15:55:54
27 Mar 2007 15:55:54 Alex Chevchenko replied:
one more thing do you know how to get my thanks page to work because it doesnt.....is it in the right place in the code?.........or what
Thank You
Replied 27 Mar 2007 16:00:19
27 Mar 2007 16:00:19 Alex Chevchenko replied:
heres the code to my form and the thanks page is in the second line in the enf of that input.......is it supposed to be there? because when i go to test it it takes me to an OOPS page



&lt;form action="/gdform.asp" onsubmit="MM_validateForm('name','','R','zip','','NisNum','phone','','R','e-mail','','RisEmail');return document.MM_returnValue"&gt; &lt;input type="hidden" name="redirect" value="../thanks.html"/&gt;
&lt;fieldset&gt;
&lt;legend&gt;&lt;b&gt;Request Information&lt;/b&gt;&lt;/legend&gt;
&lt;label for="name"&gt;Name:&lt;/label&gt;&lt;br/&gt; &lt;input name="email" type="text" id="name" size="20" maxlength="30" /&gt;&lt;br/&gt;
&lt;label for="phone"&gt;Phone:&lt;/label&gt;&lt;br/&gt; &lt;input name="phone" type="text" id="phone" size="20" maxlength="15" /&gt;&lt;br/&gt;
&lt;label for="email"&gt;Email:&lt;/label&gt;&lt;br/&gt; &lt;input name="email" type="text" id="email" size="20" maxlength="30" /&gt;&lt;br/&gt;
&lt;label for="website"&gt;WebSite:&lt;/label&gt;&lt;br/&gt; &lt;input name="website" type="text" id="website" size="20" maxlength="30" /&gt;&lt;br/&gt;
&lt;label for="desiredresults"&gt;Desired&nbsp;Results:&lt;/label&gt;&lt;br/&gt;
&lt;textarea name="5_desiredresults" cols="20" rows="6" id="desiredresults"&gt;&lt;/textarea&gt;&lt;br/&gt;
&lt;input name="submit" type="submit" value="Submit" /&gt;
&lt;/fieldset&gt;
&lt;/form&gt;
Replied 27 Mar 2007 16:23:44
27 Mar 2007 16:23:44 Lee Diggins replied:
Hi Alex

Is the thanks and the gdform page in the same folder?
Does the gdform page complete it's processing updating/insert data?

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Replied 27 Mar 2007 16:38:01
27 Mar 2007 16:38:01 Alex Chevchenko replied:
umm im using dreamweaver to make the site and my form is in my template and i made a thanks page from my template so im not sure
how its supposed to be in one folder......
Replied 27 Mar 2007 17:24:51
27 Mar 2007 17:24:51 Lee Diggins replied:
Hi Alex

The pages can be where ever you want them to be, but, I think the problem is here:

&lt;input type="hidden" name="redirect" value="../thanks.html"/&gt;

Post your code.

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Replied 27 Mar 2007 18:07:18
27 Mar 2007 18:07:18 Alex Chevchenko replied:
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;!-- TemplateBeginEditable name="doctitle" --&gt;
&lt;title&gt;Business Tachnical Solutions&lt;/title&gt;
&lt;!-- TemplateEndEditable --&gt;
&lt;meta name="keywords" content="" /&gt;
&lt;meta name="description" content="" /&gt;
&lt;link href="../v2/default.css" rel="stylesheet" type="text/css" /&gt;

&lt;!-- TemplateBeginEditable name="head" --&gt;&lt;!-- TemplateEndEditable --&gt;
&lt;style type="text/css"&gt;
&lt;!--
body {
margin-top: 0px;
}
--&gt;
&lt;/style&gt;&lt;/head&gt;
&lt;body&gt;
&lt;div id="header"&gt;
&lt;img src="../v2/images/bts_top.gif" alt="Business Technical Solutions" width="780" height="100" /&gt;&lt;/div&gt;
&lt;div id="menu"&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="/" accesskey="1" title=""&gt;Home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../internetmarketing.html" accesskey="2" title=""&gt;Internet Marketing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="www.securepaynet.net/gdshop/rhp/default.asp?prog_id=419502" accesskey="3" title=""&gt;Hosting&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../seo-training.html" accesskey="4" title=""&gt;Training&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../about-us.html" accesskey="5" title=""&gt;About us&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="../contact-us.html" accesskey="6" title=""&gt;Contact&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div id="content"&gt;
&lt;div id="colOne"&gt;
&lt;form action="/gdform.asp" onsubmit="MM_validateForm('name','','R','zip','','NisNum','phone','','R','e-mail','','RisEmail');return document.MM_returnValue"&gt; &lt;input type="hidden" name="redirect" value="../thanks.html"/&gt;
&lt;fieldset&gt;
&lt;legend&gt;&lt;b&gt;Request Information&lt;/b&gt;&lt;/legend&gt;
&lt;label for="name"&gt;Name:&lt;/label&gt;&lt;br/&gt; &lt;input name="email" type="text" id="name" size="20" maxlength="30" /&gt;&lt;br/&gt;
&lt;label for="phone"&gt;Phone:&lt;/label&gt;&lt;br/&gt; &lt;input name="phone" type="text" id="phone" size="20" maxlength="15" /&gt;&lt;br/&gt;
&lt;label for="email"&gt;Email:&lt;/label&gt;&lt;br/&gt; &lt;input name="email" type="text" id="email" size="20" maxlength="30" /&gt;&lt;br/&gt;
&lt;label for="website"&gt;WebSite:&lt;/label&gt;&lt;br/&gt; &lt;input name="website" type="text" id="website" size="20" maxlength="30" /&gt;&lt;br/&gt;
&lt;label for="desiredresults"&gt;Desired&nbsp;Results:&lt;/label&gt;&lt;br/&gt;
&lt;textarea name="5_desiredresults" cols="20" rows="6" id="desiredresults"&gt;&lt;/textarea&gt;&lt;br/&gt;
&lt;input name="submit" type="submit" value="Submit" /&gt;
&lt;/fieldset&gt;
&lt;/form&gt;

&lt;p&gt;&lt;img src="../v2/images/engine.gif" alt="Internet Marketing"/&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;!-- TemplateBeginEditable name="body" --&gt;
&lt;div id="colTwo"&gt; &lt;/div&gt;
&lt;!-- TemplateEndEditable --&gt;
&lt;div id="colThree"&gt; &lt;img src="../v2/images/seo.GIF" alt="Search Engine Optimization Specialist" width="120" height="800" /&gt; &lt;/div&gt;
&lt;div style="clear: both;"&gt;&nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div id="footer"&gt;
&lt;p&gt;Copyright &copy; Business Technical Solutions. Designed by &lt;a href="www.businesstechnicalsolutions.com/"&gt;&lt;strong&gt;BusinessTechnicalSolutions&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
Replied 27 Mar 2007 19:36:01
27 Mar 2007 19:36:01 Lee Diggins replied:
And the gdform.asp?

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Replied 27 Mar 2007 20:58:32
27 Mar 2007 20:58:32 Alex Chevchenko replied:
i have a gdform.php not asp and its



&lt;?php
$request_method = $_SERVER["REQUEST_METHOD"];
if($request_method == "GET"{
$query_vars = $_GET;
} elseif ($request_method == "POST"{
$query_vars = $_POST;
}
reset($query_vars);
$t = date("U";

$file = $_SERVER['DOCUMENT_ROOT'] . "/../data/gdform_" . $t;
$fp = fopen($file,"w";
while (list ($key, $val) = each ($query_vars)) {
fputs($fp,"&lt;GDFORM_VARIABLE NAME=$key START&gt;\n";
fputs($fp,"$val\n";
fputs($fp,"&lt;GDFORM_VARIABLE NAME=$key END&gt;\n";
if ($key == "redirect" { $landing_page = $val;}
}
fclose($fp);
if ($landing_page != ""{
header("Location: ".$_SERVER["HTTP_HOST"]."/$landing_page";
} else {
header("Location: ".$_SERVER["HTTP_HOST"]."/";
}


?&gt;
Replied 28 Mar 2007 10:10:04
28 Mar 2007 10:10:04 Lee Diggins replied:
Hi Alex

I can't help you with this I'm afraid.

Sharing Knowledge Saves Valuable Time!!!
~ ~ ~ ~ ~ ~
<b>Lee Diggins</b> - <i>DMXzone Manager</i>
<font size="1">[ Studio MX/MX2004 | ASP -> VBScript/PerlScript/JavaScript | SQL | CSS ]</font>
Replied 01 Apr 2007 14:16:28
01 Apr 2007 14:16:28 nina williams replied:
That is very interesting.I like it very much.


Flv to iPod
www.zune-converter.org

Reply to this topic