Grow your CSS skills. Land your dream job.

jquery form plugin 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:

    Code:
    < ?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:

    Code:
    < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">





    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.

*May or may not contain any actual "CSS" or "Tricks".