Reply to Re: help with posting conditional if statement

Your name:

Reply:


Posted by Geoff Berrow on 05/04/07 16:29

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/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация