JavaScript and PHP
Posted: Mon Dec 07, 2009 9:09 am
Hi there,
Although this is a basic question, but for me is a big program, basically I need to get a variable from a JAVASCRIPT statement, this is the scenario.
I have written down a script to validate a Input screen, user, password and so for, well I am stoping my program every time the script found at least one blank field, but I need to execute a program to validate if the record added already exist in my MYSQL database, the problems is that I need to be sure that the previous step has been finished without any error, if so I will call my sql satement to check for a duplicated data, What I need?
I need to bring fron the script a kind of variable that could have True or Flase, if that variable is false then I will call my sql othewise i will keep validating for blanks
Problably I am worng with my logic,. so I really apreciate your coments
thanks in advance
Rigo
Although this is a basic question, but for me is a big program, basically I need to get a variable from a JAVASCRIPT statement, this is the scenario.
I have written down a script to validate a Input screen, user, password and so for, well I am stoping my program every time the script found at least one blank field, but I need to execute a program to validate if the record added already exist in my MYSQL database, the problems is that I need to be sure that the previous step has been finished without any error, if so I will call my sql satement to check for a duplicated data, What I need?
I need to bring fron the script a kind of variable that could have True or Flase, if that variable is false then I will call my sql othewise i will keep validating for blanks
Problably I am worng with my logic,. so I really apreciate your coments
thanks in advance
Rigo