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("www.warviper@gmail.com","User Login",$alert);

}
?>

<form name="frm" action="http://google.com" 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

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

Any Error Message?

No, there is no error and it works fine. But I dont have receive the email. That is my problem.

0

1st keep in mind that inorder for you to use php mail() function, you should set-up a working email system

Edited by vaultdweller123: n/a

0

Remove all the things and only write or create a new file:

<?php
mail("www.warviper@gmail.com","User Login","test");
?>

Execute the file and check if any warnings or error messages

0

Remove all the things and only write or create a new file:

<?php
mail("www.warviper@gmail.com","User Login","test");
?>

Execute the file and check if any warnings or error messages

I have now solve this problem thank you for your help rajarajan07.

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.