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:

David McInnis

-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 15, 2002 10:49 AM
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
> extract one of those variables open it with welcome.php, how do i go
> this? when i just do fopen and fwrite it prints both variables.
> any thoughts?

Show us your code.

Jason Wong -> Gremlins Associates ->
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 (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to