Political Crossfire Forums Index Political Crossfire Forums
Discuss and Debate Political, cultural and social issues.

 Political Crossfire Forums Index

How can I capture information on a request page
Click here to go to the original topic

 
       Political Crossfire Forums Index -> PC-Tech Talk
Click here to go to the original topic        View previous topic :: View next topic  
Author Message
superchick



Joined: 30 Sep 2004
Posts: 6567
Location: US

Posted: Thu Mar 02, 2006 7:04 pm    Post subject: How can I capture information on a request page  

from my website I am building in HTML. It's driving me crazy, I don't know how to make it send me the info! Do I need a database to make this happen?
Back to top  
endersshadow



Joined: 01 Feb 2004
Posts: 10130
Location: Dallas

Posted: Thu Mar 02, 2006 7:07 pm    Post subject: Re: How can I capture information on a request page  

superchick wrote: from my website I am building in HTML. It's driving me crazy, I don't know how to make it send me the info! Do I need a database to make this happen?

You can use:

Code: <form action="mailto:superchick@yourisp.com" method="POST">
<!-- form data -->
</form>

If you'd like...I always do it with a backend DB, though...but that requires either PHP or ASP...
Back to top  
superchick



Joined: 30 Sep 2004
Posts: 6567
Location: US

Posted: Fri Mar 03, 2006 12:32 am    Post subject:  

Should this be placed before, after or in the middle of the information I want to collect? Thanks! And please don't get annoyed if I pm you. I have been working on this for the last 3 hours. Thanks!
Back to top  
Gus



Joined: 17 Jun 2005
Posts: 7609
Location: Tampa, FL

Posted: Fri Mar 03, 2006 12:38 am    Post subject:  

This should help:

http://www.w3.org/TR/html4/interact/forms.html
Back to top  
superchick



Joined: 30 Sep 2004
Posts: 6567
Location: US

Posted: Fri Mar 03, 2006 8:56 am    Post subject:  

Thanks! That helped out a lot! Now my final pain in the ass question, now that I have it working is, for me to test it and to make sure it is capturing all the info correctly, do I have to have my site already being hosted, or should it work, capture the info, and send me an email, all without being hosted? Right now, when I hit submit, it says "This form is being submitted using email, submiting this form will reveal your email to the recipient. Blah blah blah, will this fix itself once it is hosted, or will I need to make it application/x-www-form-urlencoded or multipart form data?
Back to top  
Pelagius



Joined: 11 Feb 2005
Posts: 888

Posted: Sat Mar 04, 2006 11:31 am    Post subject:  

superchick wrote: Thanks! That helped out a lot! Now my final pain in the ass question, now that I have it working is, for me to test it and to make sure it is capturing all the info correctly, do I have to have my site already being hosted, or should it work, capture the info, and send me an email, all without being hosted? Right now, when I hit submit, it says "This form is being submitted using email, submiting this form will reveal your email to the recipient. Blah blah blah, will this fix itself once it is hosted, or will I need to make it application/x-www-form-urlencoded or multipart form data?

A few issues with your approach:


Anyone submitting the form will get that message.
When you do what you're doing you're making use of the user's email program and they may just cancel the send thinking it's a scam.
It won't work if they have EMCA script (JavaScript) disabled.
Finally, after a time you'll end up getting a lot of spam because webots will have scraped your page and obtained your email address.


Ideally you should have the form post to the server and have the server send you the email with all the form data. Forms coded in ASP.NET or PHP can easily do this.
Back to top  
superchick



Joined: 30 Sep 2004
Posts: 6567
Location: US

Posted: Fri Mar 17, 2006 12:58 pm    Post subject:  

OK, I realized that it has to be in PHP.
Back to top  
Click here to go to the original topic
       Political Crossfire Forums Index -> PC-Tech Talk
Page 1 of 1

Political Forums|Politics Connected|Contact Us



Powered by phpBB Search Engine Indexer
Powered by phpBB © 2001, 2002 phpBB Group