Home > Archive > PHP Language > September 2006 > PHP Links Exchange
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PHP Links Exchange
|
|
| webmechanic 2006-09-29, 6:57 pm |
| Hi,
We need a php links exchange application that does this:
1. A user enters his company's Url and some text about his company
2. The info is sent to our email address when submit button is hit.
Here is the html page we setup.
http://www.nursinghomeapparel.com/store/addsite.html
| |
|
| you could use the php mail() function if you can get it working...
mail ( string to, string subject, string message [, string
additional_headers [, string additional_parameters]] )
------------------------------------------------------------------------------------
send your stuff to a send_message.php page
e.g. by...
<form action="send_message.php" method="post">
<input type="text" name="the_url" />
<input type="submit" value="Submit" />
</form>
get the info in send_meaasge.php:-
eg :-
<?php
$the_url = $_POST['the_url'];
$MY_EMAIL_ADDY = "example@email.com";
mail ( $MY_EMAIL_ADDY , ",my message title", $the_url);
?>
---------------------------------------------------------------------------------------------------------------
See the manual for more info here...
http://php.net/manual/en/function.mail.php
| |
|
|
|
|
|