|
|
|
|
![]() ![]() |
Nov 13 2005, 09:56 AM
Post
#11
|
|
|
Geek in-training Group: Members Posts: 301 Joined: 2-July 05 From: Washington State, USA, 3rd Rock from the Star Sol Member No.: 6,772 |
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 |
|
|
|
Nov 13 2005, 11:48 AM
Post
#12
|
|
|
Super Member Group: Members Posts: 572 Joined: 25-April 05 From: Nashville Tennessee Member No.: 4,340 |
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. |
|
|
|
Nov 20 2005, 03:35 PM
Post
#13
|
|
|
Member - Active Contributor Group: Members Posts: 80 Joined: 5-September 05 Member No.: 8,327 |
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 ;-) |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 09:50 PM |