Re: Tutorial on Re-filling form data?
| From: | Tedd Sperling | Date: | Sat, 24 Jun 2017 14:04:48 +0000 |
| Subject: | Re: Tutorial on Re-filling form data? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326127@lists.php.net to get a copy of this message | ||
> On Jun 23, 2017, at 11:59 AM, Narcis Garcia <informatica@actiu.net> wrote:
>
> A question about PHP language that can be solved with PHP language, is
> better to not be answered talking about another language.
>
>
> El 23/06/17 a les 17:23, jomali ha escrit:
>> You should submit the form data via AJAX, validate the data, then send back
>> a message indicating acceptance or rejection of the data.
>>
<opinion>
I’m not sure what is “better” or what “should” be done, but I am sure the typical PHP
application/solution does not live in a vacuum. At the very least, we need to consider/use HTML and
CSS languages to frame/present our solution for the user. Additionally, we might consider “Mobile
First” and that requires some form of Javascript (i.e., jQuery, Bootstrap, etc.) — so AJAX is
not that far removed from the tool set we could use.
I agree if a PHP solution can be used, it should be considered. But PHP does not solve all problems
and as such we “should" consider other avenues. IMO, it is the diversity in our tool-box that
makes us good programmers.
</opinion>
Cheers,
tedd
_______________
tedd sperling
tedd.sperling@gmail.com