Saturday, 28 September 2013

DIV won't show up in PHP echo

DIV won't show up in PHP echo

I am updating my website again, and this time I´m about to use a
Javascript Popup box with my register script.
This is the one I want to use: LINK
Here is the part of my code:
IF ($q3)
{
IF ($admin_default_activate == 0)
{
echo "<span style=\"color:green\">Your account is created, but
requires an Administrator to activate it.</span>";
}
ELSE
{ ?>
<div id="modal">
<div id="heading">
Your account is created and activated!
</div>
<div id="boxcontent">
<p><b>Account Details:</b><br><b>Email:</b>
test@website.se<br /><b>Password:</b>
password<br><br><b>Settings:</b><br><b>POP3:</b>
mail.website.se (Port 110)<br><b>IMAP:</b>
mail.website.se (Port 143)<br><b>SMTP:</b>
mail.website.se (Port 25/587)</p>
<a href="#" class="button red close"><img
src="popup/images/cross.png">Stäng</a>
</div>
</div>
<?php
}
}
ELSE
{
//echo "<span style=\"color:red\">Database error, could not create
email account!. Contact the Administrator</span>";
}
The Javascript code is inside the tag, but it still dont work.
The original button code is:
<a href="#" id="button">Click me</a>
And the one I use now is:
<input type="submit" id="button" name="submit" value="Create">
I dont know if that makes any differens..
Some help would be very good! =)
// Hampe
PS: Sorry for my bad English, I´m from Sweden

No comments:

Post a Comment