LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Need a contact form (https://www.linuxquestions.org/questions/linux-software-2/need-a-contact-form-555783/)

vafe 05-22-2007 07:58 AM

Need a contact form
 
I need a contact form on my website, that will send to my email address what the visitor enter in the form fields. The problem is that I can't run any php scripts.. is there a way to use some html form?:confused:

jiml8 05-22-2007 12:08 PM

You could do it by setting up the action on your form to be a mailto, like this:
Code:

<form action="mailto:you@yourdomain.com" method="post" enctype="text/plain" >
Name:<input type="text" name="tName">
Email:<input type="text" name="Email">
<input type="submit" name="submit" value="Submit">
</form>

This will invoke the user's email client to send the email.

You also could use a cgi script, such as a formmail script to process the result.

You could also get another hosting service that will allow PHP.

vafe 05-23-2007 07:58 AM

Thank you for your suggestions! I found a site that offers remotely hosted contact forms, http://www.emailmeform.com . Basically, I paste the html code in my website, and it calls the php script on their server who sends the email.:)


All times are GMT -5. The time now is 12:17 AM.