Posted by Shelly on 11/02/07 01:12
Animesh K wrote:
> Shelly wrote:
>
>>
>> I collect all the POST data into variables. In the HTML area I have
>> the values of the fields set to those variables. I also have the
>> form post to itself and do a header() command to change pages on
>> success. An example might be a text field "city". In the html area I
>> would
>> have <input type="text" name="city" value="<?php echo $city; ?>"> where
>> $city is the value of the obtained from the post of that field.
>>
>> This may not be the best way, but it sure works.
>>
>> Shelly
>>
>>
>
>
> Thanks for the quick response. This method should work, as I
> expected. I was wondering if there is a better method :)
>
> Do you post the incomplete data as a hidden post?
No, I just post it. I then validate it and process it further. Failing
validation, it drops through and displays. Successful validation send it
off somewhere else when done.
--
Shelly
[Back to original message]
|