This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function renderCustomForm(&$fields, &$metas) { | |
?> | |
<h2>Registration</h2> | |
<form action="<?php $_SERVER['REQUEST_URI'] ?>" method="post"> | |
<div> | |
<label for="user_login">Username <strong>*</strong></label> | |
<input type="text" name="user_login" value="<?php echo (isset($fields['user_login']) ? $fields['user_login'] : '') ?>"> | |
</div> | |
<div> | |
<label for="user_pass">Pass <strong>*</strong></label> | |
<input type="password" name="user_pass"> | |
</div> | |
<div> | |
<label for="user_pass_repeat">Pass repeat <strong>*</strong></label> | |
<input type="password" name="user_pass_repeat"> | |
</div> | |
<div> | |
<label for="email">E-mail <strong>*</strong></label> | |
<input type="text" name="user_email" value="<?php echo (isset($fields['user_email']) ? $fields['user_email'] : '') ?>"> | |
</div> | |
<div> | |
<label for="firstname">First name</label> | |
<input type="text" name="first_name" value="<?php echo (isset($fields['first_name']) ? $fields['first_name'] : '') ?>"> | |
</div> | |
<div> | |
<label for="website">Last name</label> | |
<input type="text" name="last_name" value="<?php echo (isset($fields['last_name']) ? $fields['last_name'] : '') ?>"> | |
</div> | |
<div> | |
<label for="user_phone">Phone</label> | |
<input type="text" name="user_phone" value="<?php echo (isset($metas['user_phone']) ? $metas['user_phone'] : '') ?>"> | |
</div> | |
<input type="submit" name="submit" value="Register"> | |
</form> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment