Jump to content

Methods In Submitting A Form


Recommended Posts

what's a simple way to make a button work in a form of "sign up"? I made a form that a user can put in his/her name and email address then clicking the "submit" button and nothing happens.now an ideal thing is to get the email address of the person who is trying to sign up, then use a pre-set email to email that person a pre-set message. how do i do that in a form?

Link to post
Share on other sites

If you are not communicating with a server-side script, written in something like PHP, then nothing will happen. The form is just a small part of the process you are describing.

Link to post
Share on other sites

Most of them use a server side scripting like PHP which checks the information that was input to see if it's valid and then checks the database to make sure that person/name doesnt already exist... and then saves that information into the database.You'll want to make sure you have PHP and MySQLHere is the PHP tutorial:http://w3schools.com/php/default.asp

Link to post
Share on other sites

ok here's a slightly different situation, say i have this on the page:28jh7kp.pngwhat would the code be if by clicking the submit button it will start mailto function with <a href="mailto:*email address here*?body=*preset text here* then *input from box1* *input from box2* "> ?so how do i make the button copy the inputs and put them into the body of the email?

Edited by wcology
Link to post
Share on other sites

I think you still need a serverside scripting, a DB or a language connector that will communicate with your email. HTML or Javascript alone are not sufficient to carry a task like the one you are planning.

Link to post
Share on other sites
ok here's a slightly different situation, say i have this on the page:28jh7kp.pngwhat would the code be if by clicking the submit button it will start mailto function with <a href="mailto:*email address here*?body=*preset text here* then *input from box1* *input from box2* "> ?so how do i make the button copy the inputs and put them into the body of the email?
mailto relies on the person having Outlook or some other client-based email program. However, most people have web based email (yahoo, hotmail, gmail, etc) and thus this method will leave them out in the cold. As previously posted you DO need PHP to best carry out this task, although mySQL/databases are only required if you plan on doing anything with that person's info past just getting an email of it. Take a look in the PHP forums here, the mail() is probably one of the most popular pieces of PHP code out there, so you should find an easy example here or on Google.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...