store $name on one line and $welcomemssg on a separate line. Then just remember that all odd numbered liens are names and even numbered lines are messages.
=C= * * Cal Evans * Techno-Mage * http://www.calevans.com * ----- Original Message ----- From: "Jule Slootbeek" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 15, 2002 1:30 PM Subject: Re: [PHP] variable question > > Here's my code, teh $welcomemssg is one of the two variable store in > index.php the other one is $name > > <?php > $File = "welcome/index.php"; > $Open = fopen ($File, "r"); > if ($Open) { > print ("$welcomemssg"); > } > fclose ($Open); > ?> > > Jule > > On Monday 15 April 2002 13:49, you typed on your keyboard, and you sent me > the following: > On Tuesday 16 April 2002 00:41, Jule Slootbeek wrote: > > Hey Guys and Gals, > > I'm writing this little script that takes two inputs: $name and > > $welcomemssg from a form and puts them in a text file. Now i only want to > > extract one of those variables open it with welcome.php, how do i go > > about this? when i just do fopen and fwrite it prints both variables. > > any thoughts? > > Show us your code. > > -- > Jule Slootbeek > [EMAIL PROTECTED] > http://blindtheory.cjb.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php