I have a working guestbook, but right now, say if you leave the captcha field empty, the alert box shows up correctly, but there is a horizontal grey area underneath the "Guestbook" header. I am trying to get rid of that and dont know how?
Here is my link.
http://starr05.comul...m/guestbook.php
7 replies to this topic
#1
Posted 08 November 2011 - 08:10 PM
|
|
|
#2
Posted 08 November 2011 - 08:25 PM
What browser are you using?
#3
Posted 08 November 2011 - 08:30 PM
IE 8.
#4
Posted 09 November 2011 - 10:42 AM
Any ideas? I was thinking something along the times as to moving that section of code to another part of the page.
#5
Posted 09 November 2011 - 11:07 AM
On the second page you display your error like so
So everything before the alert is printed on the browser, and everythign after isn't
This is why you have the header, but nothing underneat it.
So you should either do the alert sooner, or do a different way to alert the user
<script language="javascript">
alert('You have not entered captcha or entered incorrect captcha!');
history.back();
</script>
An alert actually make the browser stop and wait for the user.So everything before the alert is printed on the browser, and everythign after isn't
This is why you have the header, but nothing underneat it.
So you should either do the alert sooner, or do a different way to alert the user
#6
Posted 09 November 2011 - 11:43 AM
Vaielab said:
On the second page you display your error like so
So everything before the alert is printed on the browser, and everythign after isn't
This is why you have the header, but nothing underneat it.
So you should either do the alert sooner, or do a different way to alert the user
<script language="javascript">
alert('You have not entered captcha or entered incorrect captcha!');
history.back();
</script>
An alert actually make the browser stop and wait for the user.So everything before the alert is printed on the browser, and everythign after isn't
This is why you have the header, but nothing underneat it.
So you should either do the alert sooner, or do a different way to alert the user
And that portion of the code goes in between the <head> correct?
#7
Posted 09 November 2011 - 12:04 PM
This way you'll be redirected before anything showing on the page
#8
Posted 09 November 2011 - 12:09 PM
Ok, got it. Thanks!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









