<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">to answer your question, I can’t assess my knowledge. To put it with my words and my understanding :</div><div class=""><ul class="MailOutline"><li class="">i would like to display a form to be filled , I think client side</li><li class="">I would like to make a first processing of some data, at the input time. The purpose of this treatment is, for example, </li><ul class=""><li class="">to give specific information depending on the input, to help the person filling the form to understand what he is doing. A very basic example : display either « Mr» or "Mrs «  depending on the check of a radio button,</li><li class="">to check some input property to be sure that the input is valid. A basic example would be to check the length of a password. In my opinion, it’s no need to send improper data to the server. </li></ul></ul><div class="">I think this should still be client side.</div></div><div class=""><br class=""></div><div class="">When the form is filled, the user click the submit button, and the valid data are processed on the server (for example storage in some file server side). Globally, this last part seems to work. I get some difficulties due to typing error, « (,{«  mismatch, « ; » forgotten or extra. Just being patient </div><div class=""><br class=""></div><div class="">Does it answer your baseline question ?</div><div class=""><br class=""></div><div class="">Thanks</div><div class=""><br class=""></div><div class="">Patrice</div><div class=""><br class=""></div><div class=""><br class=""></div><div style="text-align: center;" class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">Le 27 juil. 2016 à 18:27, Peter Kay <<a href="mailto:pkay42@gmail.com" class="">pkay42@gmail.com</a>> a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class="">Let me ask you baseline question:  how well do you understand the<br class="">client/server nature of webpages?<br class=""><br class="">Which relates directly to the question: what exactly do you want each<br class="">one of them to be doing with the form?<br class=""><br class="">--Peter<br class=""><ul class="MailOutline"><li class=""><br class=""></li></ul>On Wed, Jul 27, 2016 at 8:52 AM, Patrice PELLE <<a href="mailto:patrice-pelle@bbox.fr" class="">patrice-pelle@bbox.fr</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">Hello,<br class=""><br class="">I am a true beginner in PHP and HTML. I am trying to make a form that I hope<br class="">will someday end up in a cookbook.<br class=""><br class="">In the following test form, I would like to get the value of the input text<br class="">before posting :<br class=""><br class=""><!DOCTYPE html><br class=""><html lang=fr><br class=""><br class=""><head><br class=""><title>Test</title><br class=""><meta charset = "UTF-8"><br class=""><br class=""></head><br class=""><br class=""><br class=""><body><br class=""><form action = "<?php echo $_SERVER["PHP_SELF"];?>" method = post ><br class=""><br class="">Admin Password : <input type="password" name = "AdminMdP" style="width:<br class="">20em;" required  ><br class=""><br class="">How to get here the value of AdminMdP to make some PHP treatment<br class="">(suffiscient length, special characters,…), any time the value is changed ?<br class=""><br class=""><input type="submit"  name ="OkButton" value = "Enter"><br class=""></form><br class=""></body><br class=""><br class=""><?php<br class=""><br class="">if (isset($_POST['OkButton']))<br class="">{<br class="">    $AdminMdP = $_POST["AdminMdP"];<br class="">    echo $AdminMdP;<br class="">}<br class="">?><br class=""><br class="">I  looked for some answers in the internet, but examples in jQuery, AJAX,<br class="">JavaScript are useless for me. They suppose you know what it means, which is<br class="">quite not my case. I told you, I’m a true beginner :)<br class=""><br class=""><br class="">Thanks for your help<br class=""><br class=""><br class="">Patrice<br class=""><a href="mailto:patrice-pelle@bbox.fr" class="">patrice-pelle@bbox.fr</a><br class=""><br class="">_______________________________________________<br class="">pmwiki-users mailing list<br class="">pmwiki-users@pmichaud.com<br class="">http://www.pmichaud.com/mailman/listinfo/pmwiki-users<br class=""><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></body></html>