[thelist] retaining values in forms while alerting use mistakes

Hassan Schroeder hassan.schroeder at gmail.com
Mon Jul 9 12:47:30 CDT 2007

On 7/9/07, Nan Harbison <nan at nanharbison.com> wrote:

> I thought I found two simple solutions, but I am putting either a comment or
> a php statement within a form element tag

> http://www.nanharbison.com/braintrust/braintrust-final/company-register.php

Er, I would start by validating that page -- it's a mix of XHTML and HTML,
among other things...

> I tried putting a web comment in such as
> <!--{monthselected1}-->
> and replacing this with 'selected' if the user has chosen this month.

...including the fact that you can't put comments inside elements.

> I have tried :
> <?PHP if (isset $HTTP_POST_VARS[monthselected1] {echo  $monthselected1; } ?>

If that statement's a copy/paste, you're missing a right closing
paren on the `if`...

But validate first and take it from there :-)

Hassan Schroeder ------------------------ hassan.schroeder at gmail.com

More information about the thelist mailing list