Jump to content

usman07

Members
  • Posts

    310
  • Joined

  • Last visited

    Never

Everything posted by usman07

  1. This my code.... <div id="submitbutton1"><form id="submit" name="input" action="Registered.html" method="get"> <input type="submit" value="Submit" /> </form> </div>
  2. Thanx but i still dont get it? is Ajax a range of different web tools such as php,my sql etc?
  3. Is Ajax, PHP coding and my SQL databases?
  4. This is the code for my textboxes which i want to position using css and im trying too using the div id's but they are not moving. <form id="form1" method="post" onsubmit='return checkForm();' action=""> <div id="firstname"> First Name: <input type='text' id='nameone' onblur='checknameone();' maxlength='60' size='40'/> <label id='labelnameone'></label> </div> <div id="secondtwo">Last Name: <input type="text" id="nametwo" onblur='checknametwo();' maxlength='60' size='40' /> <label id='labelnametwo'></label> </div> <div id="mail">Email Address:<input type="text" name="email" onkeyup="checkEmail(this.value);" onblur="checkEmail(this.value);" maxlength="60" size="20"/><img id="status" src="Form images/bad.png" alt=""/> </div> <div id="loginname">Login Name: <input type="text" id="login" onblur='checklogin();' maxlength="60" size="40"/> <label id='labellogin'></label> </div> <div id="password1">Password: <input type="password" id="pwdone" onblur='checkpwdone();' maxlength="30" size="40"/> <label id='labelpwdone'></label> </div> <div id="password2">Retype Password: <input type="password" id="pwdtwo" onblur='checkpwdtwo();' maxlength="30" size="40" /> <label id='labelpwdtwo'></label> </div> </form>
  5. usman07

    php styling

    Code for the text that I want to increase the width of: ('<div id="username"> <form action="" method="post"/> <font color="red"> Wrong username or password, please try again </font> <table><tr><td> <img src="imgs/Log In/username.png" alt=""/> </td><td> <input type="text" size="30" name="username" style="background-color:transparent;" /> </td></tr></table> <table><tr><td> <img src="imgs/Log In/password.png" alt=""/> </td><td> <input type="password" name="password" size="30" /> </td></tr></table> <form id="submitb" action=""> <input type="submit" value="Log in" /> </form> <p class="register">Not yet a member? <a href="Form.html">Register Here</a>, its Free!</p> </div>');
  6. usman07

    php styling

    iv attached a image to show u
  7. usman07

    php styling

    how can i insert a image? to show u a screenshot?
  8. usman07

    php styling

    if you could go on the website : http://adobetuts.netai.net/ and type in a random username (dont need to type in a password) and select 'Log in' and you will then have a better idea. thank you
  9. usman07

    php styling

    ok iv removed the font but it still remains squeezed, how can i upload a image?
  10. usman07

    php styling

    ok sorry for posting in wrong board. the width of the whole sentence. it is currently quite squeezed, what code would allow me to increase the width?
  11. usman07

    php styling

    <font face="Lucinda" color="red"> Wrong username or password, please try again </font> how do i increase the width of this text?
  12. usman07

    php styling

    I have php coding, which bring up a error message, but how can i increase the width of that error message? Thanx
  13. when on website, the message 'please supply a username and password' is displayed, and it doesnt do anything when i type in the correct details
  14. i mean, if i select 'log in' without entering any username or password, it logs in. how do i stop it from doing that? thx
  15. If i click on login with entering anything,it logs in...how do i stop it doing that?thx
  16. Oh ok, im afraid i dont have skype, but really appreciate ur help. I would have never got this far, thank you.
  17. iv tried that,nearly there now! lol its does say come up with 'your in' when username and password is correct but the 'incorrect password' and 'user does not exist' dont show when they meant too?
  18. actually no,it keeps showing up with 'Wrong username or password, please try again' even tho the username and password is correct, also if i put a random user in, it should say 'user does not exist' but it doesnt?
  19. thats weird! i thort id test the link and on there it works? lol
  20. The link: http://adobetuts.netai.net/
  21. ok i did that, now the text 'Wrong username or password, please try again' is displayed at all times, and if i do type in the correct username and password,nothing happens and the text ,Wrong username or password, please try again,is still displayed
  22. <code> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <title>Home</title> <link rel="stylesheet" href="imgs/style.css"/> </head> <body> <!--Main Div Tag--> <div id="wrapper"> <div id="header"> <div id="logo"><img src="imgs/Logo/Logo.png" alt=""/> </div> <div id="Searchbar"> <div id="box1"><input type="text" size="30" name="name" style="background-color:transparent;" /></div> </div> <div id="magnify"> <a href=""/><img src="imgs/Log In/magnify.png" alt=""/></div> </div> <div> <a id="Home" href="index.html" title="Home"><span>Home</span></a> <a id="Photoshop" href="Photoshop.html" title="Photoshop"><span>Photoshop</span></a> <a id="Illustrator" href="Illustrator.html" title="illustrator"><span>illustrator</span></a> <a id="Tips" href="Tips.html" title="Tips"><span>Tips</span></a> <a id="AboutUs" href="About Us.html" title="AboutUs"><span>About Us</span></a> </div> <div id="main"> <div id="header1"><img src="imgs/Homepage tuts/Homepage Main/Newtuts.png" alt=""/></div> <div id="header2"><img src="imgs/Log In/login.png" alt=""/> <?php $username = $_POST["username"]; $password = $_POST["password"]; //This if statement asks if the $username variable is set. If it is it executes the php script. Otherwise it echoes the login form. if(isset($username)){ if ($username&&$password) { $connect = mysql_connect("mysql13.000webhost.com","a3073051_shakoor","usman1") or die("Couldn't connect!"); mysql_select_db("a3073051_login") or die("Couldn't find db"); $query = mysql_query("SELECT * FROM users WHERE username='$username'"); $numrows = mysql_num_rows($query); if ($numrows!=0) { while ($row = mysql_fetch_assoc($query)) { $dbusername = $row['username']; $dbpassword = $row['password']; } //check to see if they match if ($username==$dbusername&&$password==$dbpassword) { echo "You're in!"; } else echo "incorrect password!"; } else die("That user does not exist!"); } else die("Please enter a username and password!"); } //This next bit echoes the login form unless the $username variable is set. else { echo ('<div id="username"> <form action="" method="post"/> <table><tr><td> <img src="imgs/Log In/username.png" alt=""/> </td><td> <input type="text" size="30" name="username" style="background-color:transparent;" /> </td></tr></table> <table><tr><td> <img src="imgs/Log In/password.png" alt=""/> </td><td> <input type="password" name="password" size="30" /> </td></tr></table> <form id="submitb" action=""> <input type="submit" value="Log in" /> </form> <p class="register">Not yet a member? <a href="Form.html">Register Here</a>, its Free!</p> </div>'); } ?> </div> <div id="table1"> <table><tr><td> <a href="imgs/Homepage tuts/Create a HD Television.html"><img src="imgs/Homepage tuts/Homepage Main/Homepage Tutorials/TVtut/icon1.png" alt=""/></a> </td><td> <a href="imgs/Homepage tuts/tut2.html"><img src="imgs/Homepage tuts/Homepage Main/Homepage Tutorials/tut2/icontut2.png" alt=""/></a> </td></tr></table> <table><tr><td> <a href="imgs/Homepage tuts/tut3.html"><img src="imgs/Homepage tuts/Homepage Main/Homepage Tutorials/tut3/tut3icon.png" alt=""/></a> </td><td> <a href="imgs/Homepage tuts/tut4.html"><img src="imgs/Homepage tuts/Homepage Main/Homepage Tutorials/tut4/tut4icon.png" alt=""/></a> </td></tr></table> <table><tr><td> <a href="imgs/Homepage tuts/tut5.html"><img src="imgs/Homepage tuts/Homepage Main/Homepage Tutorials/tut5/tut5icon.png" alt=""/></a> </td><td> <a href="imgs/Homepage tuts/tut6.html"><img src="imgs/Homepage tuts/Homepage Main/Homepage Tutorials/tut6/tut6icon.png" alt=""/></a> </td></tr></table> </div> </div> <div id="footer"> <div id="footernav"> <a id="fHome" href="index.html" title="Home"><span>Home</span></a> <a id="fPhotoshop" href="Photoshop.html" title="Photoshop"><span>Photoshop</span></a> <a id="fillustrator" href="Illustrator.html" title="illustrator"><span>illustrator</span></a> <a id="fTips" href="Tips.html" title="Tips"><span>Tips</span></a> <a id="fAboutUs" href="About Us.html" title="AboutUs"><span>About Us</span></a> </div> </div> </div> </body> </html> </code>
  23. i may have done something wrong, i will now really appreciate ur help
  24. the problem i have now is that my username: box and password:box have disappeared and it just displays 'password incorrect!'
  25. ok the page now shows up but when i try to log in: this error comes up: PHP Error Message Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'retracted'@'10.1.1.39' (using password: YES) in /home/a3073051/public_html/index.php on line 59 Free Web Hosting Couldn't connect!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.