Jump to content

MrB

Members
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About MrB

  • Rank
    Newbie
  1. i just cant find y its alway give the result to the first user that i logged in with
  2. i want to insert student result that he calculate some equation and send it to his cell in users database my problem is i cant send the result of some student to his own cell in the users table when i try to do it ,,its always (result) go to the first user that i logged in with ,, i think the issues with my SESSION can any 1 help please ??? my index.php code was <html><head><title>Home Work Page</title></head><body><form action="login.php?login=yes" method="POST"><table border=1> <tr> <td> username : <input type="text" na
  3. thank u 4 ur reply :-) i solve it
  4. mm i think i solve it thanks so much for ur help
  5. mmmm i uses echo like that <?php echo $val1; ?> or what ?
  6. my first login system code was <!DOCTYPE html><html><body bgcolor="#A3FFD1"><?php//error handlingfunction customError($errno, $errstr) { echo "<b>Error:</b>[$errno] $errstr";}//custom error handlingset_error_handler("customError");$username = $_POST['username'];$password = $_POST['password'];if (username == '123' AND password =='1234') { if(file_exists('exam.php')) require('exam.php'); else{ echo"login error"; }}else{echo "<font size=40 ><b>ِAccess Denied </b></font>" ;}?></body></html> and after that i found some s
  7. i'h buld the login system and i did try log in and its success but now my problem u know it
  8. now where can i called the user value and how i put them in the input text <input type="text" name="LofT" disabled="" size="5" value='<?php $_POST[val1]; ?>' /> <input type="text" name="HofT" disabled="" size="5" value='<?php $_POST[val2]; ?>' /> the blue code is it right to called data from user values table?
  9. i didnt connect to my user database but i assume i did and i wrote this code >>> its right or ? <!DOCTYPE html><html><body bgcolor="#A3FFD1"><html dir='ltr'><meta charset='UTF-8'/><head><title>Home Works Page</title></head><body><br/> <br/><br/> <br/><font size='14' style='bold'><b>Hello:</b> <?php echo $username; ?> </font><form action="" method="POST"><br/> <br/><br/> <br/> <table> <tr> <td>Calculatin
  10. Yeah I did lookmmm it didn't Works with meMy Question was :I have some question in my page that has a 2 variable values (val1,val2) and these values changes by lookup table ..means that evry user in my database has a different values (val1,val2) appears in a FORM.... and thanks so much for ur reply
  11. hello w3school mmbrs i have a q. thats makes me confused and its how can i insert data into WEB FORM from a DATABASE Assume : i have a database called 'home' and my table called 'vals' and the table 'vals' have 3 Fields 'username','val1','val2' and i create a web form that's have 2 inputs (val1,val2) so i want to put the values FROM THE DATABASE INTO MY WEB FORM note* , i want to insert data into web form (not from webform) any idea please ?!
  12. 2B || != 2B = THE Qustion.

×
×
  • Create New...