Submit Button Help - how to save/send data when submitting

Pages: 1, 2
free web hosting
Free Web Hosting > Astahost > Hosted Members Support > FrontPage

Submit Button Help - how to save/send data when submitting

Logan Deathbringer
YudzzY

no prob man I know how it goes...I started out with just hardware and system buildups myself...now I'm branching out to OS's, like Linux/Unix and also Solaris 10 (yes I know its a flavor of unix but its one I'm focusing on right now). Also I'm trying to learn PHP, Java, and C#...whew I'm busy in my down time from work...and I try to get some gaming in on BF2, StarCraft, Guild Wars and visit with friends...ok now I know I'm a Techno Geek...lol

Reply

Houdini
The Form element has only three attributes. They are ACTION METHOD and ENCTYPE and only one is required for the form to be useful. The ACTION specifies the URL of a CGI script or a mailto link that will in the case of a script process the name=>value pairs of your form and render this data in a form that you can deal with or if you want to experiment in the ACTION just put your own email link in there in the form of
CODE
<form method="post"  action="mailto:yourname@yoursite.com" enctype="text/plain">
<input type=text  name=your_comments>
<input type=submit value="Submit Your Comments">
</form>

The default of ENCTYPE is "application/x-www-form-unencoded' which is why in the code listed above that the enctype was set to test/plain for the email. Also there are ony two METHODS GET (the default, sends the data in the URL and is limited) and POST (it sends the data in the body of the submission and can send more data than a URL).

Now make your little test form with a mailto as shown above and you will get an email with one long string with a name followed by the value that was entered into that name field of the form, then another form name also followed by whatever data was entered into that name field and so on. Needless to say this is not very pretty and hard to read.

So using a CGI script or I would use PHP it can be programmed to take these name value pairs and present them in a fashion that is easy for you to read and makes some sense. If you would do a search for form scripts or if you want you could try this link HERE
and see if there are some scripts that you find useful for your application. I hope that will help you out a little bit, but you need to learn more about the FORM element itself and understand its intended purpose which is to send data via the form to the WEB server with the action being either a CGI script that will then process the form data a name=>value pairs or as a mailto link that will send all the name=> value pairs to an email address in one string (bot very useful if you get a bunch of form submissions because it is so hard to read).

This is one drawback of using a WYSIWYG you can create a great looking form but if you don't understand what a form is for and what to do with the form data then you only end up with a great looking form that might not do anything becuase you didn't define a program to process or mailto to send the data to.

 

 

 


Reply

YudzzY
hey you guys are so helpful!
i was really busy with the previous days, and i wondered how it would have gone if you guys hadnt helped me!
the script link your provided helped me a lot. i went through some of those scripts, and worked out with them, tested them, tried to modify them to my likes, and with much hard work and understanding i got how they function.
then i added on and merged it with my original page, and tested it online and wouuwww it works!
first i tried to run the script offline, lol so stupid of me, and the computer couldnt process the php file, and i thought this script has some bugs, so i tried a next script, and same with that one... i tested like 4-5 scripts, and i wondered maybe they work when online, and lol.. i tried it online and bingo it worked, i even received the email in my inbox, and now that works perfectly!

all credits to you guys for helping: guy, Houdini, ruben, Logan Deathbringer, and specially vujsa for that detailed post and the script links!

to be honest, i didnt knw that those scripts realy exists.. now i'll check them out all and enhance the website ;-)

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Pages: 1, 2
Recent Queries:-
  1. how to edit submit button and link to email in publisher - 5.23 hr back. (1)
  2. e-mail submit button html - 13.63 hr back. (1)
  3. run two scripts from one submit button php - 20.15 hr back. (1)
  4. run two scripts from one submit button "php code" - 20.19 hr back. (1)
  5. set up submit button on web page form to send to email - 29.73 hr back. (1)
  6. html code for submit button email - 35.78 hr back. (1)
  7. publisher submit button - 37.52 hr back. (1)
  8. php submit button to submit request - 38.52 hr back. (1)
  9. understand submit button - 41.37 hr back. (1)
  10. how to make a submit button to your database - 42.09 hr back. (2)
  11. vb submit button to email from word - 42.69 hr back. (1)
  12. get php removing submit=? - 42.89 hr back. (1)
  13. sending data from one form to another with button - 44.06 hr back. (1)
  14. frontpage express help - 46.65 hr back. (1)
Similar Topics

Keywords : Submit Button Savesend Data Submitting


    Looking for submit, button, save, send, data, submitting






*SIMILAR VIDEOS*
Searching Video's for submit, button, save, send, data, submitting
advertisement




Submit Button Help - how to save/send data when submitting