...

View Full Version : Transferring form code information



jerrysp
06-06-2007, 04:46 PM
Using the HTML <form> codes, how is the html_form_action.asp information receiving page setup?

rmedek
06-06-2007, 06:50 PM
Very carefully.

rmedek
06-06-2007, 06:53 PM
Oh, I mean since we can't see html_form_action.asp we have no idea. Post some code, a link to the page (although since it's ASP a link might not be too helpful), or something.

This also sounds like more of an ASP question, but essentially the "name" attribute of form inputs are retrieved from ASP by using <% request("name") %> in the form's action page. (I think, I'm no ASP programmer)

jerrysp
06-06-2007, 11:09 PM
This is where my question originated. The HTML codes are given but how to receive the input is not explained.

http://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_submit

rmedek
06-06-2007, 11:34 PM
Ah, ok… html_form_submit.asp is the w3schools example file. Here's the part that you need:


When the user clicks on the "Submit" button, the content of the form is sent to another file. The form's action attribute defines the name of the file to send the content to. The file defined in the action attribute usually does something with the received input.

It's the other file that does the processing. So you need some sort of code (ASP, PHP, something server-side although you can use Javascript as well) to pick up the form values. In other words, HTML by itself doesn't do the work, it's additional code that does something with the form.

What language are you coding your site in?

jerrysp
06-07-2007, 12:16 AM
I do a web site for the village where I live. I do it in HTML. That is the extent of my programming knowledge. Setting up this method of collecting information may be over my head.

Jerry

rmedek
06-07-2007, 12:57 AM
Well, you could always use the "mailto:" action on your forms. It'll send the form data to you via email. It's not very secure or adaptable but it might do the trick for you.

Google "html forms mailto" for a bunch of articles on how to get it going. Hope this helps…

jerrysp
06-10-2007, 05:25 AM
Thank you very much. I will try that method.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum