You would need to read in the line and explode the line into an array
using explode(). How you do this depends on how you wrote the variables
to a file. If you separated them using a "," you could use
$values = explode(",", $inputstring);
see also: http://www.php.net/manual/en/function.explode.php
David McInnis
-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 15, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] variable question
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.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Kissing your hand may make you feel very good, but a diamond and
sapphire bracelet lasts for ever.
-- Anita Loos, "Gentlemen Prefer Blondes"
*/
--
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