employment app
Moderator: General Moderators
employment app
i'm trying to get the input fields for a employment application that i'm writing to keep the values entered still in the fields. the app is here http://69.166.122.237:8080/confirm_applicant.php . you'll see the inputs are on the left and then when submited places it on the right. i'd like to keep what was entered on the left incase what the user inputed was wrong so that they can update it. then i'll put a save button on the left side so that it saves the information about the user. is this possible? and how?
You have to do something like this in your code:
Then in your html:
Code: Select all
if (isset($_POSTї'submit'])){
$text_input1 = (!empty($_POSTї'text_input1']))? $_POSTї'text_input1']: '';
//Repeat for each field
}Code: Select all
<input type="e;text"e; name="e;text_input1"e; value="e;<?php echo $text_input1; ?>"e;>