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

Linux, Apache, MySQL, PHP

 
QuestionAJAX & PHP Pin
Bryant May14-Feb-09 8:18
Bryant May14-Feb-09 8:18 
AnswerRe: AJAX & PHP Pin
it_8x14-Feb-09 9:29
it_8x14-Feb-09 9:29 
GeneralRe: AJAX & PHP Pin
Bryant May15-Feb-09 4:17
Bryant May15-Feb-09 4:17 
GeneralRe: AJAX & PHP Pin
Perspx15-Feb-09 4:54
Perspx15-Feb-09 4:54 
GeneralRe: AJAX & PHP Pin
Bryant May16-Feb-09 1:49
Bryant May16-Feb-09 1:49 
AnswerRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 6:08
Ioannis_o519-Feb-09 6:08 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 6:22
Bryant May19-Feb-09 6:22 
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 6:58
Ioannis_o519-Feb-09 6:58 
Hello again Bryant,

I believe that your $one should be passed to the php page and the response must be the value of $one.
This
result.$one 
doent look 'nice' to me.

For instance if there should be a variable in your php code called $one , if you don't follow my previous comment for an array then it could look like :
$variable_name = $_GET["req"];
if ($variable_name == "one")
   echo $one;
/// etc.

This means of course that your java line that creates the URL
should be like :
var url = "/cms/_sql/sendPassword.php?req=one"


and then your script (above) changes to
var result = XMLHttpRequestObject.responseText;
if (result == '1')
{    somecodeHere;
}


I ll be glad to help more if I can
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 7:24
Bryant May19-Feb-09 7:24 
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 7:58
Ioannis_o519-Feb-09 7:58 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 8:49
Bryant May19-Feb-09 8:49 
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 9:22
Ioannis_o519-Feb-09 9:22 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 10:52
Bryant May19-Feb-09 10:52 
GeneralRe: AJAX & PHP Pin
Ioannis_o519-Feb-09 22:30
Ioannis_o519-Feb-09 22:30 
GeneralRe: AJAX & PHP Pin
Bryant May19-Feb-09 23:08
Bryant May19-Feb-09 23:08 
AnswerRe: jumla in PHP Pin
EliottA14-Feb-09 7:36
EliottA14-Feb-09 7:36 
GeneralRe: jumla in PHP Pin
it_8x14-Feb-09 9:34
it_8x14-Feb-09 9:34 
QuestionFixed ip Address Pin
anishkannan13-Feb-09 18:26
anishkannan13-Feb-09 18:26 
AnswerRe: Fixed ip Address Pin
Curtis Schlak.27-Feb-09 12:53
Curtis Schlak.27-Feb-09 12:53 
AnswerRe: Fixed ip Address Pin
JasonPSage27-Feb-09 12:55
JasonPSage27-Feb-09 12:55 
AnswerRe: Fixed ip Address Pin
bcoide28-Feb-09 0:24
bcoide28-Feb-09 0:24 
Questiondatabase(PHP) Pin
JAYRAJ GIRI13-Feb-09 1:56
JAYRAJ GIRI13-Feb-09 1:56 
AnswerRe: database(PHP) Pin
Kristian Sixhøj13-Feb-09 14:15
Kristian Sixhøj13-Feb-09 14:15 
AnswerRe: database(PHP) Pin
Smithers-Jones15-Feb-09 8:53
Smithers-Jones15-Feb-09 8:53 
AnswerRe: database(PHP) Pin
tech60319-Mar-09 18:31
tech60319-Mar-09 18:31 

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.