View unanswered posts | View active topics It is currently Tue Dec 12, 2017 4:51 pm



Reply to topic  [ 2 posts ] 
 I need to see if this is correct 
Author Message
Junior Member

Joined: Sun Nov 07, 2004 12:22 am
Posts: 8
Post 
Tell me if this script is right to put the new information before the old info


<?
$name12 = $_REQUEST['name'];
$submitter12 = $_REQUEST['submitter'];

$file = fopen("users.html", "a");
$file2 = fopen("users.html", "r");
fwrite($file,"
$name12") . print($file2)
fclose($file);

mail( "MY Email goes here  :) ", "Comment on Website",
$name12, "From: $submitter12" );

header( "Location: SOURCE.php" );
?>

_________________
[url=\'http://www.zerographics.org/forums\']http://www.zerographics.org/forums[/url]


Fri Nov 12, 2004 1:10 am
Report this post
Profile
Junior Member

Joined: Mon Dec 13, 2004 5:04 am
Posts: 2
Post 
Code:
<?
   $name12 = $_REQUEST['name'];
   $submitter12 = $_REQUEST['submitter'];

   $file = fopen("users.html", "a");
   fwrite($file,"\n<BR>" . $name12 . file_get_contents("users.html"));
   fclose($file);

   mail( "MY Email goes here :) ", "Comment on Website", $name12, "From: $submitter12" );

   header( "Location: SOURCE.php" );
?>


That would do the trick


Mon Dec 13, 2004 5:12 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.