-
Posts
48 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by mikemanx2
-
-
Ive asked this question befor but i can find the code anyware in my comp so you guys think you can halp me my qestion it how do i make a random image every time you veiw the site thx...
-
-
Random
in JavaScript
ware duss it genorate the html code or do i put that code into my html document or do i save it as .js <script language="JavaScript"><!--images = new Array();images[0] = "<img src='http://www.google.co.uk/intl/en_uk/images/logo.gif'>";images[1] = "<img src='http://w3schools.invisionzone.com/style_images/w3sbanner.gif'>";index = Math.floor(Math.random() * images.length);document.write(images[index]);// --></script>
-
Random
in JavaScript
Thx But one more thing do you no what the html code would be for it
-
Random
in JavaScript
But i dont want random background i want a random image on my page
-
Random
in JavaScript
Hi im trying to do a random image thing with my frount page. i tryed php by you cant atomaticly run a script in html for php. So if any one can help me please help.
-
-
-
-
-
login help
in PHP
Yes my host suports php
-
login help
in PHP
It still dusent work register.php
-
login help
in PHP
Can Someone Help Me Fix My code
-
login help
in PHP
Im also using bravenet premem with the my sql database and hat i think its not conecting right so well heres my cody for register.php
<html><head><title>Register</title></head><center><h2>Register</h2><hr><body><?php$conn=sql2.bravehost.com('northwind','','');if (!$conn) {exit("Connection Failed: " . $conn);}$sql="SELECT * FROM customers";$rs=($conn,$sql);if (!$rs) {exit("Error in SQL");}<?if ($_POST['submit']){$un = $_POST['username'];$pass = $_POST['password'];$passc = $_POST['passwordc'];$pass2 = $_POST['password'];$un = stripslashes($un);$pass = stripslashes($pass);$passc = stripslashes($passc);if ($un == "") { $error=true; }if ($pass == "") { $error=true; }if ($passc == "") { $error=true; }if ($pass != $passc) { $error=true; }if($error){ echo "The following errors have occured:<br /><ul>"; if ($un == "") { echo "There is no username.<br />"; } if ($pass == "") { echo "There is no password.<br />"; } if ($passc == "") { echo "There is no password confirmation.<br />"; } if ($pass != $passc) { echo "Passwords don't match.<br />"; } echo "</ul>";}else{ $pass=md5($pass); $sql="INSERT INTO users (username, password) VALUES ('$un', '$pass')"; $query=sql2.bravehost.com($sql); if($query) { echo "You are now registered!, You can now <a href='login.php'>Login</a>."; } else { echo "Sorry There was an Error Try Later and it mite be fixed or contact me mikemanx2@hotmail.com"; } exit; }}?><form action="" method="post"><table><tr><td>Username:</td><td><input name="username" type="text" maxlength="20" value="" /></td></tr><tr><td>Password:</td><td><input name="password" type="password" maxlength="16" value="" /></td></tr><tr><td>Confirm Password:</td><td><input name="passwordc" type="password" maxlength="16" value="" /></td></tr><tr><td><input type="submit" value="register" name="submit" /></td></tr></table></form></body></html>
-
login help
in PHP
Its Still Not Working This is my register page Register.phpIt Wont Even Load Now
-
login help
in PHP
sry just one more thing ware do i put in my data base connection and that stuff
-
login help
in PHP
thx guys for all your help
-
login help
in PHP
Thx but would i save this as a .php or .html
-
login help
in PHP
Ok i got the login but now i dont no how to do a register can anyone plz help me
-
how do i make a line <hr> a color plz help
-
login help
in PHP
Can Anyone help Me
-
login help
in PHP
I Need A lot of help i have a sql database but i dont no how to make a regester user and login plz can i have some help im prety shure i need to use php the only langugese i know is html,qbasic,and the basics of php plz help!!!
Random Images
in JavaScript
Posted
sry never mind i just found it thx anyway