+ Reply to Thread
Results 1 to 6 of 6

Thread: Some help on coding for a contact form

  1. #1
    ZeptOr's Avatar
    ZeptOr is offline x10 Sophmore ZeptOr is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    221

    Some help on coding for a contact form

    I have two problems/questions regarding a contact form I am making using HTML and CSS

    1) I have an image for the submit button, and when it is clicked it just opens up Outlook Express, ingoring the different inputs that I have. I want it to send the information gathered from a user from my different textfields and automatically send it to an email address.

    2) For the submit button image, I want it also to have a rollover. How would I go about coding that??

    the address to the contact form is here: http://www.alexthegood.com/main/contact.html

  2. #2
    aking47 is offline x10Hosting Member aking47 is an unknown quantity at this point
    Join Date
    Oct 2006
    Posts
    13

    Re: Some help on coding for a contact form

    Hmm that's strange. Try adding a hidden field with the name body and using javascript to set the value to a string containing all the values you need from the other form elements, then set the form action to "GET". That worked for me.

  3. #3
    dest581 is offline x10 Lieutenant dest581 is an unknown quantity at this point
    Join Date
    Sep 2006
    Posts
    348

    Re: Some help on coding for a contact form

    the contact form's action attribute tells it to make the browser open a mail client. that's what mailto: does.

  4. #4
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: Some help on coding for a contact form

    u would need a php script using mail(); function. If you want I could do one for 25 x10 Points, just put on your site, change post data and go.

    btw: Looking at source code, its not even paraphasing PHP

    PHP Code:
        <?php
            
    function agent($browser) {
            
    $useragent $_SERVER['HTTP_USER_AGENT'];
            return 
    strstr($useragent$browser);
            }
            if(
    agent('Firefox') != FALSE
            {
                
    $img = @imagecreatefromjpeg("http://www.greenear.x10hosting.com/Main/dropshadow.png");
                
    ImageDestroy($img);
            }

            else 
            {
                echo 
    "Sorry, it appears you do not have Firefox, which means you cannot see the image.";  
            } 
          
    ?>
    Last edited by Brandon; 12-30-2006 at 10:50 PM.
    Thanks,
    Brandon Long

  5. #5
    ZeptOr's Avatar
    ZeptOr is offline x10 Sophmore ZeptOr is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    221

    Re: Some help on coding for a contact form

    yeah my code is messy right now, I am just trying to get everything working then I can go and fix things. That code there was something that I was using, but now its completely useless, I just need to delete it.

    Oh, and yeah Brandon ill give you 25 points for that
    Last edited by ZeptOr; 12-30-2006 at 11:57 PM.

  6. #6
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: Some help on coding for a contact form

    Quote Originally Posted by ZeptOr View Post
    yeah my code is messy right now, I am just trying to get everything working then I can go and fix things. That code there was something that I was using, but now its completely useless, I just need to delete it.

    Oh, and yeah Brandon ill give you 25 points for that
    K ill do it tommarrow;) Expect a PM or something.
    Thanks,
    Brandon Long

+ Reply to Thread

Similar Threads

  1. [PHP] How to create a simple contact form
    By nightscream in forum Tutorials
    Replies: 6
    Last Post: 01-23-2011, 11:37 AM
  2. REQ - PHP Form Submission Form
    By dwedno in forum Scripts & 3rd Party Apps
    Replies: 7
    Last Post: 11-29-2007, 06:38 PM
  3. {REQ} Advanced Contact form
    By SEŅOR in forum The Marketplace
    Replies: 6
    Last Post: 06-25-2006, 05:56 PM
  4. Contact Form v2
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 10-06-2005, 08:08 AM
  5. Contact Form
    By o0slowpaul0o in forum Tutorials
    Replies: 6
    Last Post: 06-11-2005, 04:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers