| 
	
 | 
 Posted by Ted on 09/13/06 17:50 
On Tue, 12 Sep 2006 13:36:40 GMT, Serious_Practitioner wrote... 
> 
>Please be gentle - I'm new... 
> 
>I want to create a form for use with a PHP routine. I have been using  
>FrontPage 2003 and I discovered that, if I use the FP Form Wizard utility, I  
>get a lot of code that does not seem necessary or suitable for use with PHP. 
> 
>So my question is - can I simply  create text boxes for input, name them and  
>then go on to use those names in the PHP routine? Any warnings or  
>suggestions about this? 
> 
>Thanks... 
> 
> 
>Steve E. 
> 
 
Hi Steve, 
 
Frontpage tries to take the leg work out of creating a form, but similar to 
other people's responses, it also adds a whole lot of unnecessary junk to your 
HTML code. If you dissect what FP is doing, and similar to how other HTML forms 
are setup, there are a few components that make up a form. If you have an HTML 
reference manual that would more thoroughly describe those settings and what you 
would need to get that to work. 
 
On a basic level you have a <form> tag that needs the "method" and "action" 
defined so your form nows where to send the form data, but also how to send it. 
You normally set the "method" as GET or POST which means the form fields are 
either sent along with the web address, or submitted more transparently as form 
fields. Depending which method you use you would use either 
"$_GET[form_field_name]" or "$_POST[form_field_name]" to retrieve the 
information. For the form action, you can use the same program by using the 
"<?=$_SELF?>" setting so it sends the form data to itself. 
 
Once you get the functionality down, there are other issues you may need to 
consider. Whether or not your form is accessible to the public or not, you 
should consider adding form validating code that checks for potential problems 
with data being submitted through your form. 
 
Ted 
--  
Help a Community by Participating in Ours  
We donate your subscription fees to the charity you choose  
100% of your first month, 10% thereafter.  
http://newsguy.com/charity.asp
 
[Back to original message] 
 |