cann46,
You say "on Yahoo server" -a free web-space provided by Yahoo?
I've never seen any free webhostings that support server side scripts like PHP. However, if you want to try it out, here's how to do it:
Copy this script and paste it into a text editor like note pad:
[tt]<? echo "Hi there!"; ?>[/tt]
Save it as
test.php and upload it to the server. Then type the location :
If you see
Hi there! in your browser window, then PHP is supported and you can move on. If you see
anything else, then you should consider buying a domain name and a webhost provider!
In Denmark you can do all that for 50 € including everything plus first year of webhosting (100MB, PHP etc.).
Tell a friend script? Try this:
Collect form:
[tt]<HTML>
<HEAD>
<TITLE></TITLE>
<LINK REV="made" HREF="mailto:">
<META NAME="generator" CONTENT="NoteTab Light 4.95">
<META NAME="author" CONTENT="">
<META NAME="description" CONTENT="">
<META NAME="keywords" CONTENT="">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080" ALINK="#FF0000">
<H1>TELL A FRIEND!</H1>
<FORM ACTION="mailfriend.php" METHOD="POST">
Your name : <INPUT NAME="YourName" TYPE="text"><BR>
Friends e-mail : <INPUT NAME="FriendsEmail" TYPE="text"><BR>
<INPUT TYPE="submit" VALUE="Tell a friend!">
</FORM>
</BODY>
</HTML>[/tt]
... and the script to send the mail (named mailfriend.php):
[tt]<?
$name = $_REQUEST["YourName"];
$to_address = $_REQUEST["FriendsEmail"];
$yourSite = "
$message = $name." wants you to have a look at this site:\r\n";
$message .= $yourSite;
$subject = "Cool site!";
mail($to_address, $subject, $message);
?>[/tt]
Good luck §;O)
Jakob