Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Change the format of an website contact from

  • 10-04-2010 12:40pm
    #1
    Registered Users, Registered Users 2 Posts: 182 ✭✭


    Hi,

    On a website I am adding a contact form. "Input a query etc".

    My HTML is as follows:
    <form action=mailto:info@myemail.com method=post>
                  <p> Full Name:</p>
                  <div>
                    <input name="full name" type="text" class="form" id="name">
                  </div>
                  <div class="spacer"></div>
                  <p>E-mail Address:</p>
                  <div>
                    <input name="email" type="text" class="form">
                  </div>
                  <div class="spacer"></div>
                  <p>Phone Number:</p>
                  <div>
                    <input name="phone" type="text" class="form">
                  </div>
                  <div class="spacer"></div>
                  <p>Comments or Questions:</p>
                  <div>
                    <textarea name="message" cols="35" rows="6"></textarea>
                  </div>
                  <div class="spacer"></div>
                 
                    <input name="Submit" type="image" value="Send" src="images/send-button.gif">
                  
                </form>
    




    Warning Message:

    The form is being submitted using e-mail. Submitting this from will reveal your e-mail address to the recipient, and will send the form data without encrypting it for privacy.
    You may continue of cancelthis submission? (OK) or (Cancel).



    Second Warning Message:

    This program is trying to ...............


    After selecting "OK" to the two warning messages I recieve an email with the info attached. When I open the attachment it reads as follows:
    full+name=Joe+Murphy&email=joem@gmail.com&phone=087+2221111&message=Please+contact+me+with+product+information.&Submit.x=69&Submit.y=20
    

    I have two questions I wonder can anyone help with:
    1. How can I remove this message and have the email sent without the user recieving this message
    2. Can the information be formatted so it apprear on seperate lines with correct spacing?

    Thanks in advance.


Comments

  • Registered Users, Registered Users 2 Posts: 648 ✭✭✭Freddio


    some of the php scripts that are contained here

    http://php.net/manual/en/function.mail.php


    there are asp versions if your web server is windows


  • Registered Users, Registered Users 2 Posts: 2,236 ✭✭✭techguy


    Hey jmal,

    From reading your code snippet it appears that you don't have any experience with PHP.

    9/10 times what people do is have a form on a html page and submit (action) it to a PHP file which will then validate the data and either store it in a database or send it as an email to somebody.

    PM me if you want me to write you a simple contact form script, but saying that you should find what you need with Gooooogle.


Advertisement