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 01-16-2005, 09:04 PM Fix it up
log2's Avatar
Skilled Talker

Posts: 80
Trades: 0
Ok, how would i fix this up so that the fields $name and $comm must be filled in?
PHP Code:
<?
$date 
date("d.m.y");
    
$fp fopen("comment.txt","a+"); 
    
fwrite($fp,nl2br("<table border=1 width=276 height=16><td width=128 height=4>Name:$name</td><td width=132 height=4>Date:$date</td><tr><td width=266 height=9 colspan=2>$comm</td></tr></table><br>"));
echo 
"Thank you, your comment has been Posted!";
    
fclose($fp);
?>
log2 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-16-2005, 09:17 PM
log2's Avatar
Skilled Talker

Posts: 80
Trades: 0
Never mind, I fixed it, Incase you want to know, I added if ($name && $comm) { before the script!!! thanks anyway
log2 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Fix it up
 

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