Click here to Skip to main content
15,890,882 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: How much time does it take to be a great developer in PHP? Pin
Manfred Rudolf Bihy18-Jan-13 4:50
professionalManfred Rudolf Bihy18-Jan-13 4:50 
QuestionDispensing text from a text file Pin
John Smith8-Jan-13 19:56
John Smith8-Jan-13 19:56 
AnswerRe: Dispensing text from a text file Pin
Zamshed Farhan12-Jan-13 3:03
Zamshed Farhan12-Jan-13 3:03 
QuestionSubmitting an ajax fetched table Pin
AkkiMo2-Jan-13 4:03
AkkiMo2-Jan-13 4:03 
QuestionI have a trouble about query_insert(). Pin
陳建勳24-Dec-12 1:31
陳建勳24-Dec-12 1:31 
AnswerRe: I have a trouble about query_insert(). Pin
ziggyfish6-Jan-13 12:36
ziggyfish6-Jan-13 12:36 
Questionwithout refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
vinay digil16-Dec-12 7:10
vinay digil16-Dec-12 7:10 
AnswerRe: without refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
Killzone DeathMan19-Dec-12 23:12
Killzone DeathMan19-Dec-12 23:12 
I make a little login example...

In the index.php :

HTML
<html>
  <head>
    <!-- INCLUDE HERE THE JQUERY 1.7.2 LIBRARY -->
  </head>
  <body>
    Username:<input id="input-username" type="text" maxlength="100" />
    Password:<input id="input-password" type="password" maxlength="16" />
    <input id="btn-ok" type="button" value="OK" />
  </body>
  <script type="text/javascript">
    $('#btn-ok').click(function() {
      var DataToSend = new Object();

      DataToSend.username = $('#input-username').val();
      DataToSend.password = $('#input-password').val();     

      $.post('validate.php',DataToSend,function(data) {
        
        if(data == 'ok')
          alert('Login OK!');
        else
          alert('Login ERROR!');

      });
    });
  </script>
</html>


You just make a post to a php file "validate.php" and there you validate the login, and make querys to the DataBase and return a value, and you are doing that all without refresh the page!

Any question, add me on gtalk: miguel.poegel@pears.fr
Regards,
KZ
Questionhow can Multiple selected List box items move from one list box to another list Pin
vinay digil16-Dec-12 7:06
vinay digil16-Dec-12 7:06 
AnswerRe: how can Multiple selected List box items move from one list box to another list Pin
Killzone DeathMan19-Dec-12 22:57
Killzone DeathMan19-Dec-12 22:57 
Questionhow to get data when using header('location:'. $url) ? help me Pin
aa_zz26-Nov-12 4:29
aa_zz26-Nov-12 4:29 
AnswerRe: how to get data when using header('location:'. $url) ? help me Pin
Killzone DeathMan19-Dec-12 22:54
Killzone DeathMan19-Dec-12 22:54 
AnswerRe: how to get data when using header('location:'. $url) ? help me Pin
Keanu L18-Jan-13 16:29
Keanu L18-Jan-13 16:29 
QuestionStarting Point Pin
silentspeaker19-Nov-12 23:43
silentspeaker19-Nov-12 23:43 
AnswerRe: Starting Point Pin
User 171649219-Nov-12 23:58
professionalUser 171649219-Nov-12 23:58 
GeneralRe: Starting Point Pin
silentspeaker20-Nov-12 0:07
silentspeaker20-Nov-12 0:07 
GeneralRe: Starting Point Pin
User 171649220-Nov-12 0:21
professionalUser 171649220-Nov-12 0:21 
QuestionPHP, MySQL and Apache Pin
silentspeaker10-Nov-12 19:38
silentspeaker10-Nov-12 19:38 
AnswerRe: PHP, MySQL and Apache Pin
Richard MacCutchan10-Nov-12 21:39
mveRichard MacCutchan10-Nov-12 21:39 
AnswerRe: PHP, MySQL and Apache Pin
Senaid Maksumic11-Nov-12 11:15
Senaid Maksumic11-Nov-12 11:15 
GeneralRe: PHP, MySQL and Apache Pin
silentspeaker12-Nov-12 19:19
silentspeaker12-Nov-12 19:19 
GeneralRe: PHP, MySQL and Apache Pin
Senaid Maksumic13-Nov-12 10:33
Senaid Maksumic13-Nov-12 10:33 
AnswerRe: PHP, MySQL and Apache Pin
Ngobi Arthur 20135-Jan-13 8:52
Ngobi Arthur 20135-Jan-13 8:52 
AnswerRe: PHP, MySQL and Apache Pin
vbmike14-Dec-12 4:37
vbmike14-Dec-12 4:37 
AnswerRe: PHP, MySQL and Apache Pin
Manish Choudhary .NET expert14-Dec-12 18:45
Manish Choudhary .NET expert14-Dec-12 18:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.