<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=""><div class=""><br class=""></div><div class="">Hello,</div><div class=""><br class=""></div><div class="">I am a true beginner in PHP and HTML. I am trying to make a form that I hope will someday end up in a cookbook.</div><div class=""><br class=""></div><div class="">In the following test form, I would like to get the value of the input text before posting :</div><div class=""><br class=""></div><div class=""><div class=""><font color="#ff2600" class=""><!DOCTYPE html></font></div><div class=""><font color="#0433ff" class=""><html lang=</font><font color="#ff2600" class="">fr</font><font color="#0433ff" class="">></font></div><div class=""><font color="#0433ff" class=""><br class=""></font></div><div class=""><font color="#0433ff" class=""><head></font></div><div class=""><font color="#0433ff" class=""><title></font>Test<font color="#0433ff" class=""></title></font></div><div class=""><font color="#0433ff" class=""><meta</font> <font color="#ff2600" class="">charset = "UTF-8"</font><font color="#0433ff" class="">></font></div><div class=""><br class=""></div><div class=""><font color="#0433ff" class=""></head></font></div><div class=""><font color="#0433ff" class=""><br class=""></font></div><div class=""><font color="#0433ff" class=""><br class=""></font></div><div class=""><font color="#0433ff" class=""><body></font></div><div class=""><font color="#0433ff" class=""><span class="Apple-tab-span" style="white-space: pre;">    </span><form</font> <font color="#ff2600" class="">action = "<?php echo $_SERVER["PHP_SELF"];?>" method = post </font><font color="#0433ff" class="">></font></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">               </span>Admin Password : <font color="#0433ff" class=""><input type=</font><font color="#ff2600" class="">"password" name = "AdminMdP" style="width: 20em;" required</font>  <font color="#0433ff" class="">></font></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">              </span><font color="#942192" class=""><b style="font-size: 14px;" class="">How to get here the value of AdminMdP to make some PHP treatment (suffiscient length, special characters,…), any time the value is changed ?</b></font></div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre">              </span><font color="#0433ff" class=""><input type=</font><font color="#ff2600" class="">"submit"  name ="OkButton" value = "Enter"</font><font color="#0433ff" class="">></font></div><div class=""><span class="Apple-tab-span" style="white-space:pre">        </span><font color="#0433ff" class=""></form></font></div><div class=""><font color="#0433ff" class=""></body></font></div><div class=""><font color="#0433ff" class=""><br class=""></font></div><div class=""><font color="#0433ff" class=""><?php</font></div><div class=""><br class=""></div><div class=""><font color="#0433ff" class="">if (isset</font>(<font color="#aa7942" class="">$_POST</font>[<font color="#ff2600" class="">'OkButton'</font>])) </div><div class="">{</div><div class="">    <font color="#aa7942" class="">$AdminMdP</font> = <font color="#aa7942" class="">$_POST</font>[<font color="#ff2600" class="">"AdminMdP"</font>];</div><div class="">    <font color="#0433ff" class="">echo</font> <font color="#aa7942" class="">$AdminMdP</font>;</div><div class="">}</div><div class=""><font color="#0433ff" class="">?></font></div></div><div class=""><font color="#0433ff" class=""><br class=""></font></div><div class="">I  looked for some answers in the internet, but examples in jQuery, AJAX, JavaScript are useless for me. They suppose you know what it means, which is quite not my case. I told you, I’m a true beginner :)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks for your help</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Patrice</div><div class=""><a href="mailto:patrice-pelle@bbox.fr" class="">patrice-pelle@bbox.fr</a></div></body></html>