The objective is, when the user leaves the email field on a form, to insert one row into the MySQL db. I would like the insert code not to be visible to the user. At present, the PHP file does the MySQL connect, etc, at the start, displays some html, and the field in question is coded as:
<tr><td width="130"><FONT SIZE="2" COLOR="#66CCFF" FACE="Verdana, Arial"> Email</td> <td> <input type="text" size="25" name="email"></td></tr>
I would like the function that is called to be defined in the PHP code. I have noticed code like:
All I want to do is define a function in the (same) PHP file, that inserts the row into the MySQL db, and the ONBLUR event to call that function.