Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 10-29-2005, 11:47 AM Web2mail script
slayerx's Avatar
Extreme Talker

Posts: 169
Location: Uk
Trades: 0
Im trying to get this script to work but I keep getting an error message relating to form.php on line 11

Heres form.php's code Im very new to PHP so I cant spot the error

PHP Code:
<form action="<? echo $_SERVER['PHP_SELF']; ?>" method="POST">
<table width="100%">
<tr><td align="left" width="15%">Your Name:</td>
<td align="left" width="80%"><input type="text" name="name" size="30" value="<? echo $_POST['name']; ?>"></td></tr>
<tr><td align="left" width="15%">Your E-mail:</td>
<td align="left" width="80%"><input type="text" name="email" size="30" value="<? echo $_POST['email']; ?>"></td></tr>
<tr><td align="left" width="15%">Subject:</td>
<td align="left" width="80%"><input type="text" name="subject" size="30" value="<? echo $_POST['subject']; ?>"></td></tr>
<tr><td align="left" width="15%">Message:</td>
<td align="left" width="80%">
<p align="left"><textarea cols="63" rows="10" name="message"><? echo $_POST['message']; ?></textarea></p>
<p align="left"><input type="submit" name="submit" value="Send Mail">
<input type="reset" value="Reset">
</td>
</tr>
</table>
</form>
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
slayerx is offline
Reply With Quote
View Public Profile Visit slayerx's homepage!
 
 
Register now for full access!
Old 10-30-2005, 02:18 AM
Skilled Talker

Posts: 62
Trades: 0
Give this a try:

PHP Code:
<form action="<?=$_SERVER['PHP_SELF']; ?>" method="POST">
<table width="100%">
<tr><td align="left" width="15%">Your Name:</td>
<td align="left" width="80%"><input type="text" name="name" size="30" value="<?=$_POST['name']; ?>"></td></tr>
<tr><td align="left" width="15%">Your E-mail:</td>
<td align="left" width="80%"><input type="text" name="email" size="30" value="<?=$_POST['email']; ?>"></td></tr>
<tr><td align="left" width="15%">Subject:</td>
<td align="left" width="80%"><input type="text" name="subject" size="30" value="<?=$_POST['subject']; ?>"></td></tr>
<tr><td align="left" width="15%">Message:</td>
<td align="left" width="80%">
<p align="left"><textarea cols="63" rows="10" name="message"><?=$_POST['message']; ?></textarea></p>
<p align="left"><input type="submit" name="submit" value="Send Mail">
<input type="reset" value="Reset">
</td>
</tr>
</table>
</form>
__________________

Please login or register to view this content. Registration is FREE
danlefree is offline
Reply With Quote
View Public Profile Visit danlefree's homepage!
 
Old 10-30-2005, 05:58 AM
Average Talker

Posts: 16
Trades: 0
EDIT: Sorry didn't read it correctly

Last edited by adamcs; 10-30-2005 at 06:00 AM..
adamcs is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Web2mail script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.62980 seconds with 12 queries