Posted by ZeldorBlat on 09/12/06 14:17
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.
Yes -- FrontPage adds a ton of unecessary crap that you don't really
need.
>
> 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?
You're probably best off just learning some HTML (it isn't difficult).
To create a textbox called "foo" you would simply include this inside
your <form> tags:
<input type="text" name="foo" />
The value of this box can then be used on the PHP page to which the
form submits (look at the "action" attribute of the <form> element).
Depending on the "method" attribute of your <form> element (get or
post) the value will live in $_GET['foo'] or $_POST['foo']. It will
also always live in $_REQUEST['foo'].
>
> Thanks...
>
>
> Steve E.
Navigation:
[Reply to this message]
|