Reply
Dont know what to call it...
Old 07-17-2005, 02:17 AM Dont know what to call it...
indecaypunk's Avatar
Novice Talker

Posts: 9
Location: Enfield, Ct
I want to make a form where people enter there name, e-mail adress, maybe a 1-10 skill level rating (not necassary), and have a set message to a e-mail account. Im setting up a tournament, and i want to get a list of people joining so i can put them all on teams. So i need to know all there names, e-mail, and how good they are at kickball (i sure do love the sport.) If anyone could either tell me how to do this, or could possibly send me a html code it would be greatly appreciated.
__________________
I dont need no stinkin' signature.
indecaypunk is offline
Reply With Quote
View Public Profile Visit indecaypunk's homepage!
 
When You Register, These Ads Go Away!
Old 07-17-2005, 12:51 PM
Experienced Talker

Posts: 47
PHP Code:
<?
if (isset($_POST['submit']) {
$to 'emailto@domain.com';
$header 'From: '."\"" trim($_POST['name']) . "\"" .' <.'trim($_POST['email']) .'>';
$subject "New Tournament Query";
$body 'New Tournament Query'."\n".'=================='."\n".'Name: '.$_POST['name'];."\n".Email$_POST['email'];."\n".Skill Level$_POST['skill'];."\n";

mail($to,$subject,$body,$header);
}

?>
<form method="post" action="<?=getenv("PHP_SELF")?>">
<table>
<tr>
<td colspan="2"><b>Title Here</b></td>
</tr>
<tr>
<td>Name: </td>
<td><input type='text' name='name'></td>
</tr>
<tr>
<td>Email: </td>
<td><input type='text' name='email'></td>
</tr>
<tr>
<td>Skill Level:</td>
<td><select name='skill'><? for($i 0$i 10$i++) { ?><option><?php echo $i++; ?></option><? ?></select></td>
</tr>
</table>
This should work. Just copy that, name the file with a php extension (whatever.php) and put it in a server that supports php. Oh also, go through it and change things that you see need changing, like the to email, the title, the way its displayed, whatever you want to change =)
Synchronize is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dont know what to call it...
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11500 seconds with 12 queries