NameSilo

This is pissing me off...form not working?

Spaceship Spaceship
Watch
Impact
19
hey
why the hell is this form not doing anything?
PHP:
					<form action="process.php" method="POST">
					<fieldset>
					<LEGEND>Submit a Login</LEGEND>
					<ol>
							<li>
										 <LABEL for="website">Website: </LABEL>
										 <input type="text" id="website" name="website" maxlength="40" title="Website" /> e.g.<em>www.site.com</em>
							</li>
							<li>
										 <LABEL for="username">User Name:</LABEL>
										 <input type="text" id="username" name="username" maxlength="40" title="Username" /> e.g.<em>user042</em>
							</li>
							<li>
									 	 <LABEL for="password">Password:</LABEL>
										 <input type="text" id="password" name="password" maxlength="40" title="Password" />
							</li>
								<?php if($other_field=="true"){ ?>
											<li>
													 <LABEL for="other">Other:</LABEL>
													 <input type="text" id="other" name="other" maxlength="40" title="other" /> <em>Other info needed to login</em>
											</li>
								<?php } ?>
								<strong>Are you human? Prove it!</strong>
								<?php echo recaptcha_get_html($publickey);?>
								<input type="hidden" name="submitnew" value="1" />
										<input type="submit" value="Submit Login" />
							</fieldset>
					</form>
i keep clicking submit but it doesnt do ANYThING
im not done yet...i just wanted to see if the "process.php" works fine...but the stupid form just sits there and does nothing lol
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
Remove the captcha and see if the form processes.
 
0
•••
it doesnt :(
 
0
•••
Also remove any included Javascript files, especially if they relate to the captcha. Seeing the actual page would be helpful.
 
0
•••
URL removed...fixed
removed captcha..
 
Last edited:
0
•••
Bingo. Thanks for supplying the full page.

Check your quotes a few lines above the <form> tag. Make sure you close them all.
 
1
•••
found it
:( stupid crap ...is there a program that debugs html and php code?
i would have never found it on my own lol
thanks
 
0
•••
found it
:( stupid crap ...is there a program that debugs html and php code?
i would have never found it on my own lol
thanks

You could use a color coded editor or a smart IDE. There are editors out there which would alert you to minor errors such as an unclosed ' or "

If it was color coded you would have noticed it right away ... if you used an IDE that showed where the error was then you could find the open ', ", <, >, and what not fairly quick.

As for a program that helps you run automated debug tests (unit testing, functional testing, integration testing, etc...), also another important and much overlooked factor is profiling.

Eric pointed me to a PHP Debuger and Profiler --> Xdebug - Debugger and Profiler Tool for PHP

I have not used this program, so, I can not vouch for its use -- However, Eric directed me to it, so I would assume it is decent and gets the job done ;)
 
0
•••
found it
:( stupid crap ...is there a program that debugs html and php code?
i would have never found it on my own lol
thanks

Firefox, press Ctrl+U. That's how I found the syntax error.

For editors I recommend phpDesigner: MPSOFTWARE - phpDesigner ยป Powerful PHP IDE & PHP Editor! -- professional, (free if you want, but I recommend buying), and powerful. If you want something simple, Homepage of Crimson Editor - Free Text Editor, Html Editor, Programmers Editor for Windows works pretty well, but it's a bit archaic. Cheers!

EDIT: Holy cow, what did NamePros do to my links???
ANOTHER EDIT: Sorry to those in India (about the cow thing).
 
0
•••
Appraise.net
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back