I have a perl file with embedded html. On the click of the "ok" button, i am calling a javascript where i can find out which value(there are radio butons no the form) has been selected. I have to pass this to create a new form based on the selected value. For the same, i am trying to do callserver inside the javascript. the code has been attached. please can someone help me with a solution. the callserver is not working. To explain the code i have attached : i have a sitemap which i am parsing and storing in a text file. next i am retrieving the data and creating the html form.based on the page (radio button) the user selects, another form should open with the questions available for that page in the db.