Passing the PHP value to a thrid party script in jQuery -


how jquery app validating username? (3rd party script)

iam using same third party script form validation mentioned in above question .now have file in third party script known jquery.validationengine-en.js .so have field in html known

<input type="text"  id ="test1"  value ="" class ="ajax[optional,ajaxcode]"> 

in jquery.validationengine-en.js have defined in way

   "ajaxcode":{           "file":"get_custcode.php?citycode=",         "alerttext":"code taken",         "alerttextok":"",          "alerttextload":"* checking..."    }, 

so problem how pass citycode (parameter ) dynamic value(php) mandatory @ server side script (php)inorder make sure custcode dowsnot exist in city. iam unable pass city code. here various things have tried passing value

 "file":"get_custcode.php?citycode="+<? echo $_request['citycde']?>,     "file":"get_custcode.php?citycode=<? echo $_request['citycde']?>", 

how placing value of city inside hidden form , let jquery value out of validation:

html

<input type="hidde" id="citycode" value='<? echo $_request['citycde']?>' /> 

js script

"file" : "get_custcode.php?citycode="+$("#citycode").val() 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -