When you enter values into fields on an html page, what defines the output file or where do those values go?
-
I've been playing around with html just out of curiosity. I downloaded a website template off the web and it has a "subscribe to newsletter" button and a "contact me" email page with some user input fields. This is my first attempt with creating a web page so i'm not sure how those user input values would get to me. Are they e-mailed or is there something i need to add to my html to create an output file to store those values. Here is the bit about the subscribe button: </article> <article id="newsletter"> <h5>Newsletter</h5> <form id="newsletter_form"> <div class="wrapper"> <input class="input" type="text" value="Enter your email here" onblur="if(this.value=='') this.value='Enter your email here'" onFocus="if(this.value =='Enter your email here' ) this.value=''" > </div> <a href="#" onClick="document.getElementById('newsle… </form> </article> And here is the contact page bit: <form id="ContactForm"> <div> <div class="wrapper"> <span>Your Name:</span><input type="text" class="input"> </div> <div class="wrapper"> <span>Your E-mail:</span><input type="text" class="input" > </div> <div class="textarea_box"> <span>Your Message:</span><textarea name="textarea" cols="1" rows="1"></textarea> </div> <a href="#" onClick="document.getElementById('Contac… </div> </form> </article>
-
Answer:
To be clear, HTML or Javascript running in the browser has no ability to read or write random files on the computer the browser is running on. This is done intentionally for security reasons. The browser may read or write files requires for its internal processing, but you cannot control this in the HTML or Javascript of a web page. However, it's possible for you to build a web page that can send an email, but all it does is create a template using the user's email client, with filled in data that the user can approve and edit before sending. That's typically a pretty primitive use case. Most web pages that gather data will have back-end form handlers running on the server the page came from which will store that data into enterprise databases.
newtrara... at Yahoo! Answers Visit the source
Other answers
You can not use this data from html. And there is no "output file". You need to use php to read this data back and use it. You can then use the php mail() function to send the details in email. But it is narmal practise to collect that data and store it in a mysql database. So you need to learn mysql and php.
Related Q & A:
- How to dispaly HTML page in Silverlight application?Best solution by devproconnections.com
- How to debug an HTML page on mobile?Best solution by msdn.microsoft.com
- How can we reload html page without blinking?Best solution by Stack Overflow
- What's the output from this program using fork() and why?Best solution by Stack Overflow
- What does vga output mean?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.