|
#1
|
|||
|
|||
|
Contact and Recommend Us Form
I've see mention of a "contact us" form and "recommend us" form.
Anyone actually have one working that they'd like to share? Thanks in advance. Brian http://www.606eleven.com |
|
#2
|
||||
|
||||
|
I have a "contact" template in my site:
http://www.fotogram.com/pixelpost/index.php?x=contact The front end is just plain HTML. You can basically add any HTML file to the folder of current templates you are using and name it whatever_template.html. If you call the index.php and pass a ?x=whatever in the URL, it will load the whatever_template.html view. My contact_template.html file is a simple HTML form, and what does the trick is the "action" attribute in the "form" tag. It is set to the formmail.cgi that my host (www.dreamhost.com) provides to all users. Any thing I add to the form will be sent to me in the email body. You should check with your provider if they support formmail.cgi and it should be pretty straight forward to set up. |
|
#3
|
||||
|
||||
|
http://photos.jlspurling.com/contact
also got one there as well... check the code if you wanna see what i did. used a premade script as well from some site or another (will post it if i can remember)
__________________
Affordable Website Design in North Wales |
|
#4
|
||||
|
||||
|
i emailed you the code.
__________________
Affordable Website Design in North Wales |
|
#5
|
|||
|
|||
|
Thank you.
Now, not to sound ungrateful but... anyone have any thoughts on a "recommend us" script? |
|
#7
|
||||
|
||||
|
That's indeed a concern of mine. Especially with formmail.pl, since the email address is a hidden text field in the html form.
Joe[y], if you can email me the code you used also, I'll see if that would be less prone to SPAM, and eventually use it. Thanks, Guilherme |
|
#8
|
||||
|
||||
|
It can be secured by filling up with some marks from randomously generated images.
In that condition it is enough to protect from SPAM (I think). Thats an idea for next addon
|
|
#9
|
||||
|
||||
|
Create includes/contact.php and insert the following... obviously you need to change the variables relevant to my site.
PHP Code:
HTML Code:
<form method="post" action="../includes/contact.php"> <p /> Name:<br /> <input type="text" name="Name" /> <p /> Email: <br /> <input type="text" name="EmailFrom" /> <p /> Message:<br /> <textarea name="Message" rows="8" cols="40"></textarea> <p /> <input type="submit" name="submit" value="Submit" /> </form> I've had no spam problems as yet.. but that's probably lucky. you can probably change the form names etc to make it less obvious to robots.
__________________
Affordable Website Design in North Wales Last edited by blinking8s; 09-04-2005 at 01:46 AM. |
|
#10
|
||||
|
||||
|
i updated your post joey...we have php and html tags on the new boards
__________________
i should say more clever stuff |
| Post Reply |
| Thread Tools | |
|
|