Jump to content

nielcleo

Members
  • Content Count

    100
  • Joined

  • Last visited

Community Reputation

4 Neutral

About nielcleo

  • Rank
    Member
  • Birthday 07/14/1993
  1. its not working its still not validate the input user and pass :(..but when i echoed only $_GET['userid'] and $_GET['userpass']; it displaying the data input from the form but when i used the code to validate it from the database its not working
  2. here's my new code:index.php <html><head><script type="text/javascript">function loadXMLDoc(){var xmlhttp;var x=document.getElementById("username").valuevar y=document.getElementById("password").valueif (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); }else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("myDiv").innerHTML=xmlhttp.responseText; } }xmlhttp.ope
  3. nielcleo

    Php Header

    main.php..only holds a members content
  4. nielcleo

    Php Header

    here's my index.php <?phpsession_start();if(session_is_registered(myusername)){header("LOCATION: index.php?p=success");}?> <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>New Page 1</title><script type="text/javascript" language="javascript" src="ceres.js"></script></head><body><a href="?p=page1">page1</a> | <a href="?p=page2">page2</a> | <a href="?p=page3">page3</a><br><table width="300" border="0" align="center" cellpadding="0" cellspacing="1"
  5. nielcleo

    Php Header

    it still error and i got error because its redirecting on the page its self..im checking my index.php if the session still available it will redirect on the members page.. which has a link..index.php?p=members..any tricks that you can suggest that will not show the original php that having a content of the members page..
  6. nielcleo

    Php Header

    hii would like to ask if it is possible to use index.php?p=page1 header("location:index.php?p=page1"); when i use that in header it sends me The page isn't redirecting properlywhat is the rightway to redirect me in a page without displaying the original php file in the adress bar..
  7. but the username and password doesnt send to the PHP..
  8. how can i insert the validation in database.. with this..index.php <!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> <title>Login</title> <script type="text/javascript"> var XMLHttpRequestObject = false; if (window.XMLHttpRequest) { XMLHttpRequestObject = new XMLHttpRequest(); } else if (window.ActiveXObject) { XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP"); } function getData(dataSource, divID) { var user_nam
  9. what should i need to use:(
  10. i dont have background on javascript sir thats why i got confused what argument should i do.. to gives me the output that i need :(
  11. im not getting it on the part of the http://www.w3schools.com/ajax/ajax_xmlhttprequest_create.asp :( im confused how to insert the php code on the function
  12. the number of rows.its working when im not using the ajax.. but will go.. http://url.com/checklogin.php and if it satisfy the statement it will redirect on the success page..i want to happen is load the checklogin.php without leaving the index.php..thats why itry to put ajax dynamic content to do that.. but the problem i encounter i always got WRONG USER NAME AND PASSWORD though i input the right one..
  13. here isajax.js/* Simple AJAX Code-Kit (SACK) v1.6.1 *//* ©2005 Gregory Wild-Smith *//* www.twilightuniverse.com *//* Software licenced under a modified X11 licence, see documentation or authors website for more details */function sack(file) {this.xmlhttp = null;this.resetData = function() { this.method = "POST"; this.queryStringSeparator = "?"; this.argumentSeparator = "&"; this.URLString = ""; this.encodeURIString = true; this.execute = false; this.element = null; this.elementObj = null; this.requestFile = file; this.vars = new Object(); this.responseStatus = new Array(
  14. Hi, i have here basic login system.. i tried to use ajax ..my problem is the data from the form was not send to checklogin.php thats why its always prompt WRONG USER NAME AND PASSWORD.. here's the code... login.php <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>New Page 1</title><script type="text/javascript" language="javascript" src="ceres.js"></script></head><body><table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"><tr><form name="log
×
×
  • Create New...