php - $_GET['email'] did not include the '@' character? -
i made custom form forget password in wp.
below code use:
<form name="lostpasswordform" id="lostpasswordform" action="'.wp_lostpassword_url().'" method="post"> <label for="user_login">username:<br> <input name="user_login" id="user_login" class="input" value="" size="" type="text"></label><br><br> <label for="user_email">e-mail address:<br> <input name="user_email" id="user_email" class="input" value="" size="" type="text"></label> <input type="hidden" name="" id="url_temp" value="'.str_replace( '%7e', '~', $_server['request_uri']).'&axcelerate=forgotpassword"> <input name="redirect_to" value="&user_login=&user_email=" type="hidden" id="lostpasswordform_addon"><br><br> <p class="submit"> <input name="wp-submit" id="wp-submit" class="button button-primary button-large" value="get new password" type="submit"> </p> </form> <script> jquery('#lostpasswordform #user_login').blur(function() { jquery('#lostpasswordform_addon').val( jquery('#url_temp').val() + '&user_login=' + jquery(this).val() + '&user_email=' + jquery('#lostpasswordform #user_email').val()); }); jquery('#lostpasswordform #user_email').blur(function() { jquery('#lostpasswordform_addon').val( jquery('#url_temp').val() + '&user_login=' + jquery('#lostpasswordform #user_login').val() + '&user_email=' + jquery(this).val()); }); </script>
i have problem in email value when check redirect_to
email format correct eg. nameof@mail.com
but when try set in function suing code:
if($_get['axcelerate'] == 'forgotpassword'){ echo $_get['user_email']; }
it returns nameofmail.com
, not nameof@mail.com
?
does have idea case?
Comments
Post a Comment