Posted by Anne Bos on 01/05/07 14:05
On 5 Jan 2007 03:53:25 -0800 wrote "Captain Paralytic"
<paul_lautman@yahoo.com>:
>
>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?
To get rid of this situation I made an 'else' block with a code that
is checked when results are coming. But I thought that this should not
be necessary as in the beginning there should be no input is
POST['address']
[Back to original message]
|