php-general | 2001032
Date: 03/25/01
- Next message: Joe Brown: "[PHP] Compiling, How to resolve COM"
- Previous message: Yasuo Ohgaki: "Re: [PHP] What is session.cookie_secure?"
- In reply to: Dddogbruce \( <email protected>\): "[PHP] [PHP4]"
- Next in thread: Dddogbruce \( <email protected>\): "Re: [PHP] [PHP4]"
- Reply: Dddogbruce \( <email protected>\): "Re: [PHP] [PHP4]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
if($formSubmit) {
echo "form submitted: $frmName"; //<= have you tried this to make sure
$formSubmit is true?
$newsSubmit = file("news.txt"); //RTM, your not using file() the way it's
inteneded.
$fp = fopen("news.txt", 'a'); //looks good
fwrite($fp, $frmName); //looks good, but does $frmName contain anything?
fclose($fb); //$newsSubmit is not a file pointer and should not be used as
such, use $fp instead.
} else {...
good luck
""Dddogbruce ( <email protected>)"" <ddogbruce <email protected>> wrote in message
news:3ABD8A9C.E20A93AD <email protected>
> I've defined all the variables in the form, and have all the files..
>
> <HTML>
> <TITLE>Submit News</TITLE>
> <BODY>
> Your news has been processed and added to the main page. Thanks!
> <?
> if($formSubmit) {
> $newsSubmit = file("news.txt");
> $fp = fopen("news.txt", 'a');
> fwrite($fp, $frmName);
> fclose($newsSubmit);
> } else {
> include ("newsForm.php");
> }
> ?>
> </BODY>
> </HTML>
>
> See any problems? It won't dump $frmName onto the .txt file.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Joe Brown: "[PHP] Compiling, How to resolve COM"
- Previous message: Yasuo Ohgaki: "Re: [PHP] What is session.cookie_secure?"
- In reply to: Dddogbruce \( <email protected>\): "[PHP] [PHP4]"
- Next in thread: Dddogbruce \( <email protected>\): "Re: [PHP] [PHP4]"
- Reply: Dddogbruce \( <email protected>\): "Re: [PHP] [PHP4]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

