|
Posted by Art on 05/04/07 21:53
Geoff, I tried modifying the code with your suggestions. It had the effect
of disabling the submit button. It seems like there has to be <form
method="POST" action=""> in the html, to enable the submit button.
Variables aren't being recognized by the html as defining the form.
Thanks
Art
"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:lonm33d9ad0vo1ukobi5fossnjai3fr6t7@4ax.com...
> Message-ID: <naG_h.45464$254.29048@bignews7.bellsouth.net> from Art
> contained the following:
>
>>Sort of, but this is a scaled down version of the code, which was
>>requested.
>>I'm still stuck and still trying to understand why it's not working.
>
> And you took no notice of my post on the subject before. You are still
> echoing html /before/ the<html> tag!
>
> I think you need something like this:
>
> <?php
>
> $holdchk = 0;
> if (isset($_POST['B1'])) {
> $form= "<br><br><br>";
> if (empty($_POST['app_fname'])) {
> $holdchk = 1;
> }
>
> if ($holdchk === 1 ){
> $form.= "<form method=\"POST\" action=\"some.php\">";
> }
>
> if ($holdchk === 0 ){
> $form.= "<form method=\"POST\" action=\"other.php\">";
>
> }
> }
> ?>
>
> <html>
>
> <head>
> </head>
>
> <?php echo $form;?>
>
> When
> hit the submit button</font></b> <input
> type="submit" value="Submit" name="B1"></p>
> </form>
> </body>
>
> </html>
>
> --
> Geoff Berrow (put thecat out to email)
> It's only Usenet, no one dies.
> My opinions, not the committee's, mine.
> Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|