Here's a sidenote to the whole script: save your server a little load by
removing the print statements.  PHP is an embedded language; if you need to
print something just break from PHP processing with a ?> tag and use
standard HTML.  You can embed <?= $variable ?> to print individual
variables.  If you are using the script to print chunks of code based on a
condition, use:

<? if ($var == value) { ?>
<html code here>
<? } else { ?>
<other code here>
<? }; ?>

Something to that effect, at least.  You get the idea.  It makes code
considerably more readable, and in the off-chance that someone who isn't a
PHP programmer needs to make some aesthetic changes to the document, they
can skip over the PHP input and just change HTML.  Dropping the print
statement means the server does less work, too.

Mike Frazer

"Jason Wong" <[EMAIL PROTECTED]> wrote in message
> On Thursday 24 January 2002 10:47, Michael P. Carel wrote:
> > Hi there,
> >
> > I have a problem here regarding the form table name variable (i.e <input
> > name=Process type text>), when i used Href tags to send the variable in
> > next  script it does'nt recognized the $Process variable. I've tried the
> > the submit type but but im having problem with other $variable in the
> > which is not part of the form.
> > Here's the script:
> Correct me if I'm wrong, it seems like you're trying to set some values in
> form AND trying to pass values through the URL. You cannot do both at the
> same time. Well actually you can if you use javascript.
> --
> Jason Wong -> Gremlins Associates ->
> /*
> Recursion is the root of computation since it trades description for time.
> */

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to