Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    40
    Thanks
    36
    Thanked 0 Times in 0 Posts

    Cool Mailto action in a form?

    Can somebody help me please,

    I after the simplest solution possible for this.

    I'm creating a 'catalogue' style website that purely just information driven so there's nothing too complicated about it yet.

    I have used a form on the 'contactus' section of this site with 2 text boxes, name & email address and a text area for the comment field. I've used method="post" action="mailto:..." and that's perfectly acceptable except that after the email has been sent from the default email package the fields are stil populated with text. What I would like to happen is for the email to send and for another htm to open in it's place so that I can display a sort of 'thank you for your comment' message.

    I'm aware that forms can only have one action, so perhaps this is a question for the JavaScript people and I'll probably post this thread in that forum too, but I'm after the simplest method of doing this without venturing into server side procedures. The site is in pre production and is stored locally on my machine for now so I have nothing I can test it with server side anyway.

    So in conclusion, all I am trying to achieve is when the user clicks the submit button, the result will be the mailto function immediately followed by the opening of a different htm file.

    Many many thanks to anyone that can help me.

  • #2
    Regular Coder kosstr12's Avatar
    Join Date
    Apr 2007
    Location
    Woodstock, Georgia
    Posts
    428
    Thanks
    7
    Thanked 5 Times in 5 Posts
    Maybe add an onclick=nextscreen()

  • #3
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Quote Originally Posted by adehall1980 View Post
    The site is in pre production and is stored locally on my machine for now so I have nothing I can test it with server side anyway.
    You could use EasyPHP or XAMPP. I find EasyPHP the best though because it is so simple and it works, but choose v. 1.8 because 2.0 doesn't work properly yet.

  • #4
    New Coder
    Join Date
    Jun 2007
    Posts
    40
    Thanks
    36
    Thanked 0 Times in 0 Posts
    Thanks very much for that, using a combination of this and the answer I got from the JavaScript guys I achieved what I needed to do.


  •  

    Posting Permissions

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