|
Posted by Captain Paralytic on 01/05/07 11:53
Anne Bos wrote:
> In a database about houses I want the visitor to make a choice by
> typing in an address. As a result the database presents one or more
> adresses according to the input. So far so good.
>
> However, when arriving on this page I want to present a greeting and
> some instructions. So the page starts with:
> <?php
> if (!isset ($_POST['address'])) {echo "Welcome, Instructions etc.";}
> ?>
>
> In spite of this I always get a list of all addresses, perfectly as I
> want to present them AFTER the input.
> What might I do wrong, what is it I'm overlooking?
> Any suggestion is appreciated.
Is the rest of the code in an "else" block, or will is execute
regardless of whether $_POST['address'])) is set?
Navigation:
[Reply to this message]
|