Welcome Guest ( Log In | Register )



2 Pages V  < 1 2  
Closed TopicStart new topic
> Submit Button Help, how to save/send data when submitting
Logan Deathbring...
post Nov 13 2005, 09:56 AM
Post #11


Geek in-training
Group Icon

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
Go to the top of the page
 
+Quote Post
Houdini
post Nov 13 2005, 11:48 AM
Post #12


Super Member
Group Icon

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.
Go to the top of the page
 
+Quote Post
YudzzY
post Nov 20 2005, 03:35 PM
Post #13


Member - Active Contributor
Group Icon

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 ;-)
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Closed TopicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php, Sql Lite: Storing Session's Data?(1)
  2. Disaster Recovery(14)
  3. A Button That Senses The Mouse(2)
  4. How To Save A Image In Pdf File And Download It?(10)
  5. Send Mail Through Outlook Express(7)
  6. How To Send Email Using VB (using SMTP) ?(8)
  7. 10 Gb Data Storage For Free!(54)
  8. Renaming The Start Button In Windows XP(9)
  9. Convert Fat32 To Ntfs Without Data Loss (dos-mode)(4)
  10. MS Outlook Rules(7)
  11. [PHP + MySQL] Encrypting Data(9)
  12. MS Excel -- Automatic Update Of Data(2)
  13. Internet Through Data Cable(8)
  14. Want To Create A Community Website(4)
  15. Games For Samsung D900(1)
  1. Select All Button(5)
  2. How Do I Send SMS To Mobiles Through My Site(9)
  3. Problems With Php Saving Data Into Mysql(6)
  4. Data Recovery(14)
  5. Was My Site Data Copied By Someone?(6)
  6. Letting Users Add Mysql Data With Php(1)
  7. Rss And Xhtml From The Same Data(0)
  8. How To Make A Simple Flash Button(1)
  9. Email Problems(5)
  10. Friends Can't Start The Exe Files I Send :((3)
  11. Java And Sql: Data Mismatch(6)
  12. Php Location Header No Send Session Id ?(0)
  13. Skydrive(5)


 



- Lo-Fi Version Time is now: 24th July 2008 - 08:14 PM