RE: [PHP] variable question
| From: | David McInnis | Date: | Mon, 15 Apr 2002 17:53:55 +0000 |
| Subject: | RE: [PHP] variable question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93051@lists.php.net to get a copy of this message | ||
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:php-general@gremlins.com.hk]
Sent: Monday, April 15, 2002 10:49 AM
To: php-general@lists.php.net
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