Note that there are some explanatory texts on larger screens.

plurals
  1. POPreserve form values on validation
    primarykey
    data
    text
    <p>Ik want to prevent field reset after validation. I have searched some topics but i cant implement it in my code.</p> <pre><code>if($form_view == true) { echo ''; if($error != '') { echo '&lt;strong&gt;&lt;font color="#FF0000"&gt;Fout:&lt;/font&gt;&lt;/strong&gt;&lt;br /&gt;'.$error.'&lt;br /&gt;'; } echo '&lt;form method="POST" action="'.$filename.'" style="border:0px; margin:0px; padding:0px;"&gt; Voornaam &lt;br /&gt; &lt;input type="text" name="voornaam" maxlength="50" id="input_contact" style="width: 200px; value="'.(isset($_POST['voornaam']) ? $_POST['voornaam'] : '').'"&gt; &lt;br /&gt; Achteraam &lt;br /&gt; &lt;input type="text" name="achternaam" maxlength="50" id="input_contact" style="width: 200px; value="'.(isset($_POST['achternaam']) ? $_POST['achternaam'] : '').'"&gt; &lt;br /&gt; Adres &lt;br /&gt; &lt;input type="text" name="adres" maxlength="50" id="input_contact" style="width: 400px; value="'.(isset($_POST['adres']) ? $_POST['adres'] : '').'"&gt; &lt;br /&gt; Postcode &lt;h7&gt;&lt;i&gt;&lt;small&gt;(1234 AB)&lt;/small&gt;&lt;/i&gt;&lt;/h7&gt; &lt;br /&gt; &lt;input type="text" name="postcode" maxlength="7" id="input_contact" style="width: 100px; value="'.(isset($_POST['postcode']) ? $_POST['postcode'] : '').'"&gt; &lt;br /&gt; Woonplaats &lt;br /&gt; &lt;input type="text" name="woonplaats" maxlength="50" id="input_contact" style="width: 200px; value="'.(isset($_POST['woonplaats']) ? $_POST['woonplaats'] : '').'"&gt; &lt;br /&gt; Telefoonnummer &lt;h7&gt;&lt;i&gt;&lt;small&gt;(0123-456789)&lt;/small&gt;&lt;/i&gt;&lt;/h7&gt; &lt;br /&gt; &lt;input type="text" name="telefoonnummer" maxlength="11" id="input_contact" style="width: 100px; value="'.(isset($_POST['telefoonnummer']) ? $_POST['telefoonnummer'] : '').'"&gt; &lt;br /&gt;&lt;br /&gt; </code></pre> <p>If you can give me one example on how to implement this in one field. </p> <p>Thanks a lot</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload