also @ TechSpot: Google, Samsung unveil Chromebook, Chromebox with Chrome OS 19

TechSpot

HTML form programming

Discussion in 'Software Apps' started by rox1397, Mar 6, 2011.

  1. rox1397 Newcomer, in training

    I'm learning how to write websites in HTML and I just learned the <form> command and the different form elements you can use with it. When I set the command to MAILTO:email@example.com it opened up my computer's default mail program. I'm wondering if there's any way to have the information sent to my e-mail without using an external program.
  2. jobeard TechSpot Ambassador

    Yes, with the mailto in the href, the client's default email software is invoked, which
    exposes the target email address.

    The other choice is to send a message to the webserver where cgi programming forms parameters to the sendmail api on the webserver itself. This hides all the email addresses and allows extra data to be inserted in the message.

    Instead of an href with mailto, the form action is used to point at your cgi program on the websever to process all the forms data.
  3. freythman Newcomer, in training

  4. jobeard TechSpot Ambassador

    On the webserver, ANY programming language can be used to process CGI requests - -
    pick one you like, or if you're new to CGI & programming per se, then the PHP recommendation is just great - - it's easy to learn.

    Most web hosting provideres support Perl, PHP, and BASH (aka shell programming, but NOT recommended).