You are here: Technology, Web & Business Forum
: Web Development
: Programming
:
How to direct values from php textboxes in a form to a email account?
|
Welcome to the Technology, Web & Business Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
|||
I have a web form at designed in php. Can you provide me with a simple code to connect a textbox to an email account.
|
|
|||
|
|||
What i understand is you want to send the contents in textbox in an email.
For this you need to submit your form to another php page and then send email. See the following code Now on mail.php < ?php $strContent = $_POST['strContent']; $strTo = "to@yahoo.com"; $strFrom = "from@yahoo.com"; mail($strTo, "This is subject", $strContent, "From:".$strFrom); ?> If SMTP settings are OK in php.ini, your email will be recieved at $strTo from $strFrom.
__________________
football games |



Linear Mode
