PHP - geri İstemci tarafına Sunucu Doğrulama Mesaj dönmek nasıl?

0 Cevap

Sunucu tarafında doğrulama uygulamasının yapısı aşağıdaki iki yöntem tarafından kabul edilebilir.

Method one: The PHP script does the validation is the same one that provides the user with an input form. Say form_client_server.php

Method one: The PHP script does the validation is different from the one that provides the user with an input form. Say form_client.php (i.e. print the form for the user) and form_server.php (i.e., the Action that will be triggered when the user submit the form by clicking submit button).

İşte soru:

Her iki durumda da, nasıl sever komut formunu görüntüler sayfasına mesajları (Örneğin, hata iletileri) dönebilirsiniz?

Mümkünse, ben bu konular için bazı ayrıntılı bilgiler veren bir öğretici / örnek / kitap bölümü görmek istiyorum.

Teşekkür ederim

0 Cevap