Skip to content Skip to sidebar Skip to footer

Is The Following Code Valid?

Well let me explain the code first: First the user enters the id, the jquery checks the database for the id..if the id exists it fetches the results and displays in the remaining f

Solution 1:

I think your problem may be

$('#id').val()

There is no element with the id='id'

Solution 2:

You may open firebug in firefox browser or inspect element in google chrome to see if there is a JavaScript error or to view the server response from the calling of the script_3 ,Also use the 'var_dump'. Or the print_r functions to see if the parameters from the JavaScript reach the server correctly or they don't

Solution 3:

1/

From what I can see on this line:

< p>Name:< input type="text" name="rno"/>

taken from HTML side you havent closed the <p> tag to close it put </p>.

2/

on the script_3

else echo "no";

you forgot the brackets. needs to be:

else {

echo "no";}

3/

on script_1

you have:

?php

it needs to be:

< ?php

Hope this helps

Post a Comment for "Is The Following Code Valid?"