For Programmers: Free Programming Magazines  


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

macca

2006-09-30, 7:57 am

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

Manuel Lemos

2006-09-30, 6:57 pm

Hello,

on 09/29/2006 01:09 PM webmechanic said the following:
> 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 may want to look at this:

http://www.phpclasses.org/simplelinkexchange

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com