Advanced Search

View Poll Results: Did you find this useful??

Voters
5. You may not vote on this poll
  • Yes!!

    3 60.00%
  • No!!

    2 40.00%
Results 1 to 5 of 5

Thread: [AJAX] AJAX+PHP contact form.

  1. #1
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [AJAX] AJAX+PHP contact form.

    1) CODE TITLE: Ajax contact form.

    2) AUTHOR NAME/NOTES: Shachi Bista.

    3) DESCRIPTION: Put up a ajax contact form in your website.

    4) URL TO CODE: N\A

    Attached Below:
    contact.zip contents:
    ajaxcontent.html(frontend+javascript),
    send.php(backend),
    images/input_bg.png(optional for styling).

    EDIT:By the way I forgot to zip the README file. Here it is:

    Code:
    Change the $from variable in send.php to your email address and that's it.
    
    And also remove the cell with the "From" input.
    EDIT: Hey I forgot the LINCENCE Agreement.

    Code:
    This is a free distribution so you get it for free. Umm... You SHOULD place the credits as follows:
    
    /***************
    Script created by: Shachi Bista
    ***************/
    
    But it's not a must so you can skip that(first reason because I cannot think of anything to put in the credits).
    Last edited by shachi; 07-12-2006 at 08:09 AM.

  2. #2
    Join Date
    Mar 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    doesn't work !!!

  3. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Ok, modified the code a bit to get it to work properly.

    Changes made:
    - simple configuration variables (if you want to change the names of the files or whatnot)
    - included the readme in the zip file.
    - Editted the send.php file to assign the $from variable to a defualt (if none was entered by the end user).
    - Moved javascript to external file.
    - Included "loading" image (so the user "knows" that something is happening).

    Tested it and it works fine, now.
    Hope this helps.
    Last edited by thetestingsite; 03-24-2007 at 04:50 PM.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  4. #4
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks, thetestingsite.

  5. #5
    Join Date
    Mar 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you very much

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •