Give help. Get help.

  • # October 11, 2008 at 8:32 pm

    I am trying to create a form that uses ajax to submit. I created a insert_email.php script which looks like this:

    < ?php require_once('Connections/connect.php'); ?>

    < ?php mysql_select_db($database_connUser); $sql="INSERT INTO mail_list (id,email) VALUES('','$_POST[email]')"; if (!mysql_query($sql,$connUser)) { die('Error: ' . mysql_error()); } echo "1 record added"; ?>

    And I have my page which is a text box that asked for the e-mail address, which looks like this:

    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

    Mail List Test

    Get Notified

    Yes Sir!!

    When I click submit I get the beforeSubmit alert but I never get the success callback response. However, the address does get insereted into the database but no update to div #output2. Note: I have tried locally and on the server.

    It can be all be found right here.

    # October 12, 2008 at 7:52 pm

    NEVER MIND….it was already working FF3 and ad muncher did not get along with the script.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.