0

Hello I'm new also with the php programming language i tried to put this code. I wanted to happen is when it submit it will email to me the name of the user.

 <?php
$alert = $user->get('username');

if (isset($_POST['continue'])){
mail("waren@unicondouglas.com","User Login",$alert);

}
?>

<form name="frm" action="http://enpekei.com/products/index.php?option=com_igallery&view=category&id=0&Itemid=57" method="post">
Good Day! <?php echo $user->get('username'); ?><br><br>

You are now log on. Please click continue to see our products.<br/><br/>
<input type="submit" name="continue" value="Continue" />
</form>

Edited by Reverend Jim: Fixed formatting

4
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by waren
0

Hi,
I hope ur problem is that you would like to get the username by mail while uiser trying to sign in .
Pls put your mail script where you wrote the login validation script and only exceute the mail script if it successfull login

Edited by pssubash: n/a

0

thank you so much i have now resolve this problem, thanks for your help and to the owner of this site thank you.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.