|
Posted by Johnny on 09/13/06 18:28
"Serious_Practitioner" <Serious_PractitionerNOSPAM@att.net> wrote in message
news:IJyNg.28974$QM6.17418@bgtnsc05-news.ops.worldnet.att.net...
> 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.
>
Yep you prety much can. You get at the vars using the the names you used
so <input type="text" name="banana" />
will appear in PHP when you post it as $_POST['banana']
and as $_GET['banana'] for get vars.
as another poster said, it easy to see in the url what gets sent if you use
get variables, and I'd add that it's easy for post also when debugging if
you use var_dump($_POST)
A kitset approach, be it procedural or classes, is a good way to go. You can
start simple and save your stuff in an include file then next time you want
that piece of code or class you just include it (caveat with classes is to
use include_once)
As others have said and you have noticed, front page and the like can create
a lot of superfluous code, although can be very productive for a quickie. In
the long run with larger projects they just lead to code-bloat.
I like an editor that formats and hilights the keywords like phpdeveloper on
windows which I guess is where you are since you are using fp.
The current trend is to use html/php to create the content and CSS2 to
arrange things on the page.
Navigation:
[Reply to this message]
|