Re: [PHP] Tutorial on Re-filling form data?

[email protected] (Tedd Sperling)
Newsgroups php.general
Message-ID <[email protected]>
> On Jun 22, 2017, at 2:15 PM, leam hall <[email protected]> wrote:
> 
> Using PHP 5 and not OOP savvy.
> 
> I have a form that gives the user options. On submit it calls itself
> and if the $_POST variable is set produces the result of the form
> choices. However, it currently resets all the form options to default
> values.
> 
> Is there a tutorial somewhere on how to keep the existing form choices
> in place, unless the user changes the selection and resubmits?
> 


Hi:

You may want to review the following link:

http://sperling.com/php/index.php

There’s no OOP, but rather simple form demo’s that show how to make your forms “sticky” with various controls.

Cheers,

tedd
_______________
tedd sperling
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.