944,179 Members | Top Members by Rank

Ad:
Jun 20th, 2007
0

Need a contact form

Expand Post »
Hello,

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?
Similar Threads
Reputation Points: 33
Solved Threads: 0
Newbie Poster
seban is offline Offline
2 posts
since Jun 2007
Jun 20th, 2007
0

Re: Need a contact form

Yes, but the form will not be pretty as you can't modify the sent data in any way:

HTML and CSS Syntax (Toggle Plain Text)
  1. <form action=mailto:your@email.address method="POST" enctype="text/plain">
Last edited by stymiee; Jun 20th, 2007 at 11:11 am.
Moderator
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
stymiee is offline Offline
1,422 posts
since May 2006
Jun 22nd, 2007
0

Re: Need a contact form

:stymiee> <form action=mailto:your@email.address method="POST" enctype="text/plain">

>_< messy and it's not just a case of being unable to modify data : most browsers will dump you to a default mail client (if one exists) with (at best) the form data in the message body. (assuming that that default mail client is even configured to send mail) the user then has to go click 'send' themselves; that is convolution to the max. at worst, the browser will spit an error, or won't do anything.

if you want to be sure that most users will be able to use your form, get a better hosting provider. if there's some legitimate reason why just ONE hosting provider that you're using won't let you access any kind of server-side script, and you need to keep a site with that hosting provider.. rent one that does let you write script, and use that one solely to send the mail.
HTML and CSS Syntax (Toggle Plain Text)
  1. <b>Welcome to http://myprimarydomain.tld!</b>
  2. ...
  3. <form action="http://myotherdomain.tld/mailscript.php" method="POST" enctype="text/plain">
  4. ...
  5. </form>
I'll rent you a one-function script on one of my domains if you're desperate...

Otherwise, you're probably better off just writing your email address on the page and asking people to email you the information if they feel like it. That's pretty much what action=mailto equates to.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Jun 23rd, 2007
0

Re: Need a contact form

Remember, they said they don't have access to PHP. Otherwise a formmail script would have been the obvious choice.
Moderator
Reputation Points: 161
Solved Threads: 38
He's No Good To Me Dead
stymiee is offline Offline
1,422 posts
since May 2006
Jun 23rd, 2007
0

Re: Need a contact form

Mm. Indeed and agreed. but it's probably worthwhile listing all of the drawbacks of mailto: actions; rather than a simple script somehere ( not neccessarily on the same server where the site is hosted ).

When I had a similar problem ( sendmail blocked ) with some dodgy cheap hosting my old employer used; I set up individiual scripts on my own private full-featured hosting package to handle email forms for clients. As far as I know, those scripts are still in-use...

Perhaps I should start running a third-party service... Set up an account for some silly price like £10 for life ( guaranteed for five years ), and use your own private mailto script, with configurable IP-blocking and a timed IP lock and referer check to protect againt automatic mailbombing... I'm sure such things exist already, but I can't seem to find them by perusing.. It'd almost be money for nothing. ( disapears to plan ).
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Jun 24th, 2007
1

Re: Need a contact form

Thank you for your suggestions! I found a site that offers remotely hosted contact forms, 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.
Reputation Points: 33
Solved Threads: 0
Newbie Poster
seban is offline Offline
2 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: Css floating problem
Next Thread in HTML and CSS Forum Timeline: Fluid CSS, aligning column heights, but with fluid widths





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC