php-windows Digest 13 Jan 2003 20:08:44 -0000 Issue 1533

Topics (messages 17798 through 17830):

PHP + Win98 Question
        17798 by: Dean Hayes
        17800 by: Dash McElroy

sessions expire for dial up users and old browers
        17799 by: Olav Bringedal
        17801 by: Ignatius Reilly

Re: initialize variables (was: Using the GET Method)
        17802 by: Bobo Wieland
        17803 by: Dash McElroy
        17804 by: Sean Malloy
        17825 by: Wade
        17827 by: Mikey

Installation problems =(
        17805 by: Bobo Wieland

$_SESSION
        17806 by: Bobo Wieland
        17808 by: Rico Derks
        17809 by: Rich Gray
        17811 by: Bobo Wieland
        17818 by: Rich Gray
        17819 by: Bobo Wieland
        17820 by: Rich Gray
        17821 by: Bobo Wieland

php.ini
        17807 by: Naqashzade, Sadeq
        17817 by: Per Lundberg

Hi all
        17810 by: Leon

PEAR bootstrapper
        17812 by: Michele Manzato

Can't type national characters
        17813 by: Peter Henriksen

Re: Ping, Script ends before it's finished
        17814 by: J.Veenhuijsen
        17815 by: J.Veenhuijsen

Trouble with php4ts.dll
        17816 by: Per Lundberg

Problem with extensions on W2K
        17822 by: George Pitcher
        17823 by: Luis Moreira
        17824 by: Luis Moreira

PHP Math
        17826 by: James Meers
        17828 by: Ignatius Reilly

Download Script Name
        17829 by: Aaron Smith

form question
        17830 by: Anthony Ritter

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message --- Can anyone please tell me why i can not use php fully under win98SE with apache 1.3.24 and PHP 4.3.0 I have most of the features of PHP but i can not seem to test scripts that i design that need forms or sessions. This gets rather anoying as with each new script i need to test it on a remote computer.

Thanks.

Dean Hayes
Mystical Web Designs

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus

--- End Message ---
--- Begin Message ---
Dean,

What kind of problems are you encountering? I have done reasonable testing
on Win9x and a huge amount of testing on Win2k with the only problems
relating to pathnames or special extensions (i.e. PDFLib). So far...

I have not tested session code on Win9x, but it works flawless on Win2k.

Have you by any chance verified php.ini settings? If your other site is
hosted, you may be better off checking the phpinfo() screens.

-Dash

If little else, the brain is an educational toy.
                -- Tom Robbins

On Mon, 13 Jan 2003, Dean Hayes wrote:

> Can anyone please tell me why i can not use php fully under win98SE with
> apache 1.3.24 and PHP 4.3.0 I have most of the features of PHP but i can not
> seem to test scripts that i design that need forms or sessions. This gets
> rather anoying as with each new script i need to test it on a remote
> computer.
>
> Thanks.
>
> Dean Hayes
> Mystical Web Designs
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
I have a problem with sessions. Or maybe two, i don't know. Im pretty sure the
code is ok so I'll not enclose that for now.

The problem is following: 

When a dial up user logs into my page they often loose the cookie to the
session (or dont get a cookie at all).

This also happens for users with old browsers. I have recreated the problem
with a win 3.1 version of I explore 3.01, but im not scared about that.

>From >IE 4.0 and >opera 3.1 everything seems to work fine for users with a
steady connection.

Do anyone have any tips on where i should start tracking this? Or better a
solition? :)

configuration:
Apache/1.3.23 (Win32) PHP/4.2.3

PHP :
[Session]

session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 7200
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 7200
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1

APACHE:

Timeout 30
KeepAlive On
MaxKeepAliveRequests 30
KeepAliveTimeout 15
MaxRequestsPerChild 0
MaxClients 30
ThreadsPerChild 30




=====
--

Olav Bringedal
jaggu.org

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
It is advisable to write the cookie in full details:

// at the top of each page:
session_start() ;
setcookie( session_name(), session_id(), time()+3600, "/" ) ;
ob_start() ;
// etc

Ignatius
____________________________________________
----- Original Message -----
From: "Olav Bringedal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 9:07 AM
Subject: [PHP-WIN] sessions expire for dial up users and old browers


> I have a problem with sessions. Or maybe two, i don't know. Im pretty sure
the
> code is ok so I'll not enclose that for now.
>
> The problem is following:
>
> When a dial up user logs into my page they often loose the cookie to the
> session (or dont get a cookie at all).
>
> This also happens for users with old browsers. I have recreated the
problem
> with a win 3.1 version of I explore 3.01, but im not scared about that.
>
> From >IE 4.0 and >opera 3.1 everything seems to work fine for users with a
> steady connection.
>
> Do anyone have any tips on where i should start tracking this? Or better a
> solition? :)
>
> configuration:
> Apache/1.3.23 (Win32) PHP/4.2.3
>
> PHP :
> [Session]
>
> session.save_handler = files
> session.use_cookies = 1
> session.name = PHPSESSID
> session.auto_start = 0
> session.cookie_lifetime = 7200
> session.cookie_path = /
> session.cookie_domain =
> session.serialize_handler = php
> session.gc_probability = 1
> session.gc_maxlifetime = 7200
> session.referer_check =
> session.entropy_length = 0
> session.entropy_file =
> session.cache_limiter = nocache
> session.cache_expire = 180
> session.use_trans_sid = 1
>
> APACHE:
>
> Timeout 30
> KeepAlive On
> MaxKeepAliveRequests 30
> KeepAliveTimeout 15
> MaxRequestsPerChild 0
> MaxClients 30
> ThreadsPerChild 30
>
>
>
>
> =====
> --
>
> Olav Bringedal
> jaggu.org
>
> __________________________________________________
> Do You Yahoo!?
> Everything you'll ever need on one web page
> from News and Sport to Email and Music Charts
> http://uk.my.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Just wanted to say thanks to those of you who've helped me on this one! =)
Thanks...

One more question to clarify one thing, though:

if someone is calling 'index.php' like this: 'index.php?i=10'

and on that page I have:

while ($i <= 10) {
 do something;
 $i++;
}

that piece of code wouldn't be executed. But if I used $i = $_POST['i']; it
would work. But then again the 'hacker' could write a form for himself and
send $i via post...
So the smartest(?) thing would be to just write:

$i = 0;
while ($i <= 10) {
 do something;
 $i++;
}

Thanks for helping me!

And about books being outdated; I still learn the basics better from books.
When I've then learnt the basics it's easier to catch-up, reading on-line
and asking people like you... But for me books is the way to go when I'm
learning...

.bobo www.elstudion.com/bobo/
      www.elstudion.com


----- Original Message -----
From: "Stephen Edmonds" <[EMAIL PROTECTED]>
To: "Bobo Wieland" <[EMAIL PROTECTED]>
Cc: "PHP Windows Helplist" <[EMAIL PROTECTED]>
Sent: Sunday, January 12, 2003 4:15 PM
Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method)


>
> ----- Original Message -----
> From: "Bobo Wieland" <[EMAIL PROTECTED]>
> To: "Sean Malloy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Sunday, January 12, 2003 2:59 PM
> Subject: [PHP-WIN] initialize variables (was: Using the GET Method)
>
>
> > Please, explain this to me, because I couldn't figure it out by
myself...
> >
> > If register_globals is set to 'off', and because it's good practice, you
>
> It makes it harder for someone to 'hack' your webpage.
>
> > should allways initzialize your variables?
> > So I should write:
> >
> > $test = $_POST['test']; and then I can use $test as usuall...
>
> You don't have to. You can either do that and then use test, or you can
just
> use $_POST['test'] instead. It does not matter which way.
>
> > But what about local variables then? Variables that shouldn't be past
from
> one page to
> > another?
>
> They won't be parsed... If you don't send it via a
session/cookie/form/etc,
> it won't be on the next page
>
> > And is $_POST[] short for $HTTP_POST_VARS[] or is it something else?
>
> $HTTP_POST_VARS[] is the older version of  $_POST. It will most likely not
> be in any more versions of php, hence why you must use $_POST
>
> > And should you use $_SESSION[] and not session_register()?!?
>
> $_SESSION[] only holds the values of the session variables. If you
register
> a value using session_register(), it will then be stored in $_SESSION[] .
>
> Complicated bit:
> Basically, $_POST/$_GET/etc are just 'arrays'. They are used to store all
> the values passed on in a page in a few big stores. It is also much harder
> to manually input values into those arrays. e.g.
> $_POST["test"] can ONLY have come from a post method, e.g. from a form
> submited to your page.
> $test however can come from the url (
http://host/page.php?test=thisvalue),
> or from a form, or any other input method. It all comes down to security
in
> the end.
>
> If you have any further questions, do not hesitate to send it in. The only
> stupid question is one which you do not ask!
>
> Stephen
>
> >
> > Sorry for these simple questions, but I would like to do things right...
> My
> > knowledge comes basicly just from 'Beginning PHP4 (WROX)' and it seems
> that
> > the book doesn't dig so deep into this matter...
> >
> > Thanks!
> >
> >
> > .bobo :: www.elstudion.com/bobo
> > ----- Original Message -----
> > From: "Sean Malloy" <[EMAIL PROTECTED]>
> > To: "Wade" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Sunday, January 12, 2003 9:59 AM
> > Subject: RE: [PHP-WIN] Using the GET Method
> >
> >
> > > IMO, writing programs that work without register_globals to be
enabled,
> is
> > a
> > > good thing.
> > >
> > > Throughout the book, the code examples will have been created with
> > > register_globals on. (The default setting for older PHP
> > > installations/versions)
> > >
> > > just keep in mind that variables are not auto created for you, so you
> must
> > > initialize them first.
> > >
> > > $author = $_GET['author'];
> > >
> > > if you change the form method to POST, then you will have to modify
the
> > code
> > > to reflect that too.
> > >
> > > Anyways, explicitly initialising your variables is a good habit to get
> > into.
> > > Its more secure.
> > >
> > > -----Original Message-----
> > > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, 12 January 2003 3:49 PM
> > > To: Wade
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP-WIN] Using the GET Method
> > >
> > >
> > > Ah, You're the latest of the ones to get hit by the register_globals
> > > setting. There are two things to do:
> > >
> > > 1. Change your code to reference the METHOD referenced in the form
page
> > > GET -> $_GET['varname']
> > > POST -> $_POST['varname']
> > > COOKIE -> $_COOKIE['varname']
> > > SESSION -> $_SESSION['varname']
> > > GPC (Get Post Cookie, in that order) -> $_REQUEST['varname']
> > >
> > > See php.net/register_globals for this.
> > >
> > > 2. Change your php.ini settings from:
> > >   register_globals = off
> > > to
> > >   register_globals = on
> > >
> > > then restart your server.
> > >
> > > Now, I just have to ask myself why I don't have a canned message for
> > > this...
> > >
> > > -Dash
> > >
> > > Know thyself.  If you need help, call the C.I.A.
> > >
> > > On Sat, 11 Jan 2003, Wade wrote:
> > >
> > > > 01112003 2132 CST
> > > >
> > > > Im working on learning PHP4 by reading Beginning PHP 4, Wrox Press.
> > > > Chapter 3, page 76.
> > > > Im working with a form field sending data via the GET method.
> > > > On the first page, you fill in a text field and hit send.
> > > > That data is sent via the URL.
> > > > I can see it in the URL, on the next page.
> > > > The page will not show the data in the variable spot.
> > > >
> > > > The Code:
> > > >
> > > > Page One
> > > > <html><head><title></title></head>
> > > > <body>
> > > > <form method=get action="text.php>
> > > > Who is your favorite author?
> > > > <input name="author" type="text">
> > > > <br>
> > > > <input type=submit>
> > > > </form>
> > > > </body></html>
> > > >
> > > > Page Two - text.php
> > > > <html><head><title></title></head>
> > > > <body>
> > > > Your favorite author is:
> > > > <?php
> > > > echo $author;
> > > > ?>
> > > > </body></html>
> > > >
> > > > Now, I know PHP is case sensitive and I have been sure to check the
> > > > $variable in the code. I have worked through some other pages in
this
> > > > book and I downloaded the documentation from the wrox website. Their
> > > > code is exactly as the book and my own.
> > > >
> > > > Im stumbed. Anybody read this book? Can anybody see something wrong?
> > > >
> > > > Wade
> > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On Mon, 13 Jan 2003, Bobo Wieland wrote:

> Just wanted to say thanks to those of you who've helped me on this one! =)
> Thanks...
>
> One more question to clarify one thing, though:
>
> if someone is calling 'index.php' like this: 'index.php?i=10'
>
> and on that page I have:
>
> while ($i <= 10) {
>  do something;
>  $i++;
> }
>
> that piece of code wouldn't be executed. But if I used $i = $_POST['i']; it
> would work. But then again the 'hacker' could write a form for himself and
> send $i via post...
> So the smartest(?) thing would be to just write:
>
> $i = 0;
> while ($i <= 10) {
>  do something;
>  $i++;
> }

Correct, but if you use a for loop, it would take care of that for you:

for($i=0;$i<10;$i++) {
        echo $i;
}

and it looks cleaner.

> Thanks for helping me!
>
> And about books being outdated; I still learn the basics better from books.
> When I've then learnt the basics it's easier to catch-up, reading on-line
> and asking people like you... But for me books is the way to go when I'm
> learning...

I agree. There's something about having physical paper in front of one
self that still makes things easier to understand.

-Dash

Atlanta makes it against the law to tie a giraffe to a telephone pole
or street lamp.



--- End Message ---
--- Begin Message ---
Nope, you're slightly wrong!

when you access a page: index.php?i=3

you would code:

$i = $_GET['i'];

:)

POST is for when you are POSTING to a page from a form. GET, is when you are
getting a page via the web browser. Geddit? :)

-----Original Message-----
From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
Sent: Monday, 13 January 2003 8:22 PM
To: Stephen Edmonds
Cc: PHP Windows Helplist
Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method)


Just wanted to say thanks to those of you who've helped me on this one! =)
Thanks...

One more question to clarify one thing, though:

if someone is calling 'index.php' like this: 'index.php?i=10'

and on that page I have:

while ($i <= 10) {
 do something;
 $i++;
}

that piece of code wouldn't be executed. But if I used $i = $_POST['i']; it
would work. But then again the 'hacker' could write a form for himself and
send $i via post...
So the smartest(?) thing would be to just write:

$i = 0;
while ($i <= 10) {
 do something;
 $i++;
}

Thanks for helping me!

And about books being outdated; I still learn the basics better from books.
When I've then learnt the basics it's easier to catch-up, reading on-line
and asking people like you... But for me books is the way to go when I'm
learning...

.bobo www.elstudion.com/bobo/
      www.elstudion.com


----- Original Message -----
From: "Stephen Edmonds" <[EMAIL PROTECTED]>
To: "Bobo Wieland" <[EMAIL PROTECTED]>
Cc: "PHP Windows Helplist" <[EMAIL PROTECTED]>
Sent: Sunday, January 12, 2003 4:15 PM
Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method)


>
> ----- Original Message -----
> From: "Bobo Wieland" <[EMAIL PROTECTED]>
> To: "Sean Malloy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Sunday, January 12, 2003 2:59 PM
> Subject: [PHP-WIN] initialize variables (was: Using the GET Method)
>
>
> > Please, explain this to me, because I couldn't figure it out by
myself...
> >
> > If register_globals is set to 'off', and because it's good practice, you
>
> It makes it harder for someone to 'hack' your webpage.
>
> > should allways initzialize your variables?
> > So I should write:
> >
> > $test = $_POST['test']; and then I can use $test as usuall...
>
> You don't have to. You can either do that and then use test, or you can
just
> use $_POST['test'] instead. It does not matter which way.
>
> > But what about local variables then? Variables that shouldn't be past
from
> one page to
> > another?
>
> They won't be parsed... If you don't send it via a
session/cookie/form/etc,
> it won't be on the next page
>
> > And is $_POST[] short for $HTTP_POST_VARS[] or is it something else?
>
> $HTTP_POST_VARS[] is the older version of  $_POST. It will most likely not
> be in any more versions of php, hence why you must use $_POST
>
> > And should you use $_SESSION[] and not session_register()?!?
>
> $_SESSION[] only holds the values of the session variables. If you
register
> a value using session_register(), it will then be stored in $_SESSION[] .
>
> Complicated bit:
> Basically, $_POST/$_GET/etc are just 'arrays'. They are used to store all
> the values passed on in a page in a few big stores. It is also much harder
> to manually input values into those arrays. e.g.
> $_POST["test"] can ONLY have come from a post method, e.g. from a form
> submited to your page.
> $test however can come from the url (
http://host/page.php?test=thisvalue),
> or from a form, or any other input method. It all comes down to security
in
> the end.
>
> If you have any further questions, do not hesitate to send it in. The only
> stupid question is one which you do not ask!
>
> Stephen
>
> >
> > Sorry for these simple questions, but I would like to do things right...
> My
> > knowledge comes basicly just from 'Beginning PHP4 (WROX)' and it seems
> that
> > the book doesn't dig so deep into this matter...
> >
> > Thanks!
> >
> >
> > .bobo :: www.elstudion.com/bobo
> > ----- Original Message -----
> > From: "Sean Malloy" <[EMAIL PROTECTED]>
> > To: "Wade" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Sunday, January 12, 2003 9:59 AM
> > Subject: RE: [PHP-WIN] Using the GET Method
> >
> >
> > > IMO, writing programs that work without register_globals to be
enabled,
> is
> > a
> > > good thing.
> > >
> > > Throughout the book, the code examples will have been created with
> > > register_globals on. (The default setting for older PHP
> > > installations/versions)
> > >
> > > just keep in mind that variables are not auto created for you, so you
> must
> > > initialize them first.
> > >
> > > $author = $_GET['author'];
> > >
> > > if you change the form method to POST, then you will have to modify
the
> > code
> > > to reflect that too.
> > >
> > > Anyways, explicitly initialising your variables is a good habit to get
> > into.
> > > Its more secure.
> > >
> > > -----Original Message-----
> > > From: Dash McElroy [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, 12 January 2003 3:49 PM
> > > To: Wade
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [PHP-WIN] Using the GET Method
> > >
> > >
> > > Ah, You're the latest of the ones to get hit by the register_globals
> > > setting. There are two things to do:
> > >
> > > 1. Change your code to reference the METHOD referenced in the form
page
> > > GET -> $_GET['varname']
> > > POST -> $_POST['varname']
> > > COOKIE -> $_COOKIE['varname']
> > > SESSION -> $_SESSION['varname']
> > > GPC (Get Post Cookie, in that order) -> $_REQUEST['varname']
> > >
> > > See php.net/register_globals for this.
> > >
> > > 2. Change your php.ini settings from:
> > >   register_globals = off
> > > to
> > >   register_globals = on
> > >
> > > then restart your server.
> > >
> > > Now, I just have to ask myself why I don't have a canned message for
> > > this...
> > >
> > > -Dash
> > >
> > > Know thyself.  If you need help, call the C.I.A.
> > >
> > > On Sat, 11 Jan 2003, Wade wrote:
> > >
> > > > 01112003 2132 CST
> > > >
> > > > Im working on learning PHP4 by reading Beginning PHP 4, Wrox Press.
> > > > Chapter 3, page 76.
> > > > Im working with a form field sending data via the GET method.
> > > > On the first page, you fill in a text field and hit send.
> > > > That data is sent via the URL.
> > > > I can see it in the URL, on the next page.
> > > > The page will not show the data in the variable spot.
> > > >
> > > > The Code:
> > > >
> > > > Page One
> > > > <html><head><title></title></head>
> > > > <body>
> > > > <form method=get action="text.php>
> > > > Who is your favorite author?
> > > > <input name="author" type="text">
> > > > <br>
> > > > <input type=submit>
> > > > </form>
> > > > </body></html>
> > > >
> > > > Page Two - text.php
> > > > <html><head><title></title></head>
> > > > <body>
> > > > Your favorite author is:
> > > > <?php
> > > > echo $author;
> > > > ?>
> > > > </body></html>
> > > >
> > > > Now, I know PHP is case sensitive and I have been sure to check the
> > > > $variable in the code. I have worked through some other pages in
this
> > > > book and I downloaded the documentation from the wrox website. Their
> > > > code is exactly as the book and my own.
> > > >
> > > > Im stumbed. Anybody read this book? Can anybody see something wrong?
> > > >
> > > > Wade
> > > >
> > > >
> > > > --
> > > > PHP Windows Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- 01132003 0826 CST

Ok. This code is right off the PHP.net site. I changed the action="action.php" to action="form.php" only.

But, when I run the page I receive "Hi . You are years old." Only.
Is this because I have global_variables turned off, even through Im using $_post?

Wade

**********
<html>
<head>
<title>PHP Form</title>

<body>

<form action="form.php" method="post">
Your name: <input type="text" name="name" />
Your age: <input type="text" name="age" />

<input type="submit">
</form>

</body>
</html>

************

<html>
<head>
<title>PHP Form</title>

<body>

Hi <?php echo $_post["name"];?>.
You are <?php echo $_post["age"];?> years old.

</body>
</html>

--- End Message ---
--- Begin Message ---
The variable is $_POST - PHP is case sensitive...

Mikey

> -----Original Message-----
> From: Wade [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 16:31
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] initialize variables (was: Using the GET Method)
> 
> 
> 01132003 0826 CST
> 
> Ok. This code is right off the PHP.net site. I changed the 
> action="action.php" to action="form.php" only.
> 
> But, when I run the page I receive "Hi . You are years old." Only.
> Is this because I have global_variables turned off, even through Im 
> using $_post?
> 
> Wade
> 
> **********
> <html>
> <head>
> <title>PHP Form</title>
> 
> <body>
> 
> <form action="form.php" method="post">
>       Your name: <input type="text" name="name" />
>       Your age:  <input type="text" name="age"  />
> 
>       <input type="submit">
> </form>
> 
> </body>
> </html>
> 
> ************
> 
> <html>
> <head>
> <title>PHP Form</title>
> 
> <body>
> 
> Hi <?php echo $_post["name"];?>.
> You are <?php echo $_post["age"];?> years old.
> 
> </body>
> </html>
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 
> 

--- End Message ---
--- Begin Message ---
Hi all...

Thought that I should upgrade from PHP4.0 to 4.3 and so I did... But I ran
into trouble, as always. when ever I try to load an PHP page I get an alert
message saying:

"Unknown(): Unable to load dynamic library 'G:\PHP\extensions\php_zlib.dll'"

I really do hate php.ini... Why should allways open source and linux/unix
things be so complicated?

I have php_zlib.dll in the given directory and I've added the line:
'extension=php_zlib.dll' to php.ini since it wasn't there from the start...

What do I do?
------------

Now, to prevent from further damage to my setup; I have MySQL 4.0.3-beta and
was suggested to upgrade that one too... Can I do this without to much
problems? Something I should think about?

thanks!!!


.bobo





--- End Message ---
--- Begin Message ---
Hi... Feels like I'm spaming this list with this many questions all at once.
But here is one more:

I'm having problems with displaying session variables now since I turned
register_globals off...

before I had this code for a session variable:

session_register("test");
$test = "Hello world";

and to display it on another page I had to use:
session_register("test");
echo $test //displayed 'Hello World'

But now nothing works...
I've tried lots of different combination with session_register() and
$_SESSION[] but nothing works... How do I do this?

I've tried making something out of what is said on php.net but I don't
understand...

.bobo


--- End Message ---
--- Begin Message ---
Hi,

Make sure you have a valid dir in your: session.save_path = c:/session
This is located in php.ini -> [session]


RICO.


--- End Message ---
--- Begin Message ---
don't use session_register().

Try creating a couple of test pages as follows...

page1.php
<?
session_start();
$_SESSION['test'] = 'Blah';
?>

page2.php
<?
session_start();
echo $_SESSION['test'];
?>

HTH
Rich
-----Original Message-----
From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2003 10:56
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] $_SESSION


Hi... Feels like I'm spaming this list with this many questions all at once.
But here is one more:

I'm having problems with displaying session variables now since I turned
register_globals off...

before I had this code for a session variable:

session_register("test");
$test = "Hello world";

and to display it on another page I had to use:
session_register("test");
echo $test //displayed 'Hello World'

But now nothing works...
I've tried lots of different combination with session_register() and
$_SESSION[] but nothing works... How do I do this?

I've tried making something out of what is said on php.net but I don't
understand...

.bobo



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message ---
First of all; I had written the wrong save_path in php.ini. Thanks for that
Rico! It had just slipped my mind.

Second, Rich; The test you suggested I try, did work, but my own pages
doesn't. It works only when I do:

page1:
<?
session_start();
session_register('test');
$test = "blah";
?>

page2:
<?
session_start();
echo ($_SESSION['test']);
?>

why?!?

.bobo


> don't use session_register().
>
> Try creating a couple of test pages as follows...
>
> page1.php
> <?
> session_start();
> $_SESSION['test'] = 'Blah';
> ?>
>
> page2.php
> <?
> session_start();
> echo $_SESSION['test'];
> ?>
>
> HTH
> Rich
> -----Original Message-----
> From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 10:56
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] $_SESSION
>
>
> Hi... Feels like I'm spaming this list with this many questions all at
once.
> But here is one more:
>
> I'm having problems with displaying session variables now since I turned
> register_globals off...
>
> before I had this code for a session variable:
>
> session_register("test");
> $test = "Hello world";
>
> and to display it on another page I had to use:
> session_register("test");
> echo $test //displayed 'Hello World'
>
> But now nothing works...
> I've tried lots of different combination with session_register() and
> $_SESSION[] but nothing works... How do I do this?
>
> I've tried making something out of what is said on php.net but I don't
> understand...
>
> .bobo
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>

--- End Message ---
--- Begin Message ---
Can you post some code that doesn't work....
Rich
-----Original Message-----
From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2003 12:14
To: Rich Gray; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] $_SESSION


First of all; I had written the wrong save_path in php.ini. Thanks for that
Rico! It had just slipped my mind.

Second, Rich; The test you suggested I try, did work, but my own pages
doesn't. It works only when I do:

page1:
<?
session_start();
session_register('test');
$test = "blah";
?>

page2:
<?
session_start();
echo ($_SESSION['test']);
?>

why?!?

.bobo

--- End Message ---
--- Begin Message ---
okej.. here it comes as short as I could get it... try the 'test' link to go
to page2...

page one:
<?php
    session_start();
 $xhtmlStart = $_SESSION["xhtmlStart"];
 $cellnum = 1;
 define("WHITE", "#ffffff");
 define("LGREY", "#fafafa");
 define("MAXSHOWN", 3);

    $xhtmlStart = "hello";
echo($xhtmlStart);
echo("<a href='svar.php'>test</a>");
?>


page 2:
<?php
    session_start();
    echo($_SESSION["xhtmlStart"]);
?>

----- Original Message -----
From: "Rich Gray" <[EMAIL PROTECTED]>
To: "Bobo Wieland" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 2:21 PM
Subject: RE: [PHP-WIN] $_SESSION


> Can you post some code that doesn't work....
> Rich
> -----Original Message-----
> From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 12:14
> To: Rich Gray; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] $_SESSION
>
>
> First of all; I had written the wrong save_path in php.ini. Thanks for
that
> Rico! It had just slipped my mind.
>
> Second, Rich; The test you suggested I try, did work, but my own pages
> doesn't. It works only when I do:
>
> page1:
> <?
> session_start();
> session_register('test');
> $test = "blah";
> ?>
>
> page2:
> <?
> session_start();
> echo ($_SESSION['test']);
> ?>
>
> why?!?
>
> .bobo
>
>

--- End Message ---
--- Begin Message ---
well it would seem that you aren't assigning anything to
$_SESSION['xhtmlStart'] - so does it work if you have this on page one?

<?php
 session_start();
 $_SESSION['xhtmlStart'] = "hello";
 $cellnum = 1;
 define("WHITE", "#ffffff");
 define("LGREY", "#fafafa");
 define("MAXSHOWN", 3);

 echo("<a href='svar.php'>test</a>");
?>

-----Original Message-----
From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
Sent: 13 January 2003 13:50
To: Rich Gray
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] $_SESSION


okej.. here it comes as short as I could get it... try the 'test' link to go
to page2...

page one:
<?php
    session_start();
 $xhtmlStart = $_SESSION["xhtmlStart"];
 $cellnum = 1;
 define("WHITE", "#ffffff");
 define("LGREY", "#fafafa");
 define("MAXSHOWN", 3);

    $xhtmlStart = "hello";
echo($xhtmlStart);
echo("<a href='svar.php'>test</a>");
?>


page 2:
<?php
    session_start();
    echo($_SESSION["xhtmlStart"]);
?>

--- End Message ---
--- Begin Message ---
Oh... I know what was wrong now! After reading some post here I thought that
you initiated a session variable with:

$test = $_SESSION['test'];

and then you could use $test as it is whitout having to write $_SESSION[]
all the time.
But as I see now, I have to make $test a reference to the session variable:

$test = &$_SESSION['test'];

and now everything works... thanks! =)



.bobo :: www.elstudion.com/bobo/



----- Original Message -----
From: "Rich Gray" <[EMAIL PROTECTED]>
To: "Bobo Wieland" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 3:04 PM
Subject: RE: [PHP-WIN] $_SESSION


> well it would seem that you aren't assigning anything to
> $_SESSION['xhtmlStart'] - so does it work if you have this on page one?
>
> <?php
>  session_start();
>  $_SESSION['xhtmlStart'] = "hello";
>  $cellnum = 1;
>  define("WHITE", "#ffffff");
>  define("LGREY", "#fafafa");
>  define("MAXSHOWN", 3);
>
>  echo("<a href='svar.php'>test</a>");
> ?>
>
> -----Original Message-----
> From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2003 13:50
> To: Rich Gray
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] $_SESSION
>
>
> okej.. here it comes as short as I could get it... try the 'test' link to
go
> to page2...
>
> page one:
> <?php
>     session_start();
>  $xhtmlStart = $_SESSION["xhtmlStart"];
>  $cellnum = 1;
>  define("WHITE", "#ffffff");
>  define("LGREY", "#fafafa");
>  define("MAXSHOWN", 3);
>
>     $xhtmlStart = "hello";
> echo($xhtmlStart);
> echo("<a href='svar.php'>test</a>");
> ?>
>
>
> page 2:
> <?php
>     session_start();
>     echo($_SESSION["xhtmlStart"]);
> ?>
>
>

--- End Message ---
--- Begin Message ---
Hi,
I'm using Win2K Prof. and installed Apache 1.3.2 as my web server plus PHP
4.0.6 as module.
I have several sie on my computer. for one of them I need to include certain
file before any thing. I know that there is auto_prepend_file in php.ini but
this will run for all of my sites :-(
Is there any way?
I know that in Linux I must be able to use .httaccess but do not know how?
and in Windows I do not know at all.

Any one can help me?

Tnx
Sadeq


--- End Message ---
--- Begin Message ---
Naqashzade, Sadeq wrote:

I know that in Linux I must be able to use .httaccess but do not know how?
and in Windows I do not know at all.

You can use .htaccess in Apache both on Linux and Windows. Like this:

php_value auto_prepend_file platform/platform.php

Make sure AllowOverride in the Apache httpd.conf is set to All for this to work. And, remember that using .htaccess is fairly slow; it would be better to add <Directory> directives in the Apache config for your directories.

--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.capio.com



--- End Message ---
--- Begin Message ---
Dear Newbie

I would like to request on behalf of all of us registered on this mailing list
that newbies PLEASE check the PHP manual before requesting help on the MOST
BASIC of functions that are VERY WELL explained in the manual.

This will alow us be able to stay registered on the list to help each other
without being mail bombed!!!
I enjoy helping people, but ONLY when I can see they have at least checked the
manual.

Cheers

--
Leon Jansen van Nieuwenhuizen
Personal Computing Services
Information & Communication Technology Services
University of Cape Town
Email: [EMAIL PROTECTED]
__________________________
__________________________


--- End Message ---
--- Begin Message ---
PHP 4.3.0/Win32 misses a PEAR installer/bootstrapper. Attached you'll find a
.bat file which does the job.
(remove the '.txt' from the filename and copy to c:\php. Then, run 'go-pear'
from 'c:\php').

(then you'll get some errors in the installed pear.bat, but that's another
issue...)

I'd like to see something similar packaged in future PHP releases...
(4.3.1?)

Bye
Michele



begin 666 go-pear.bat.txt
M0&5C:&\@;V9F#0HZ.@T*.CH@4$5!4B!B;V]T<W1R87!P97(@9F]R(%=I;C,R
M#0HZ.B!$;W=N;&]A9"!A;F0@<G5N(&=O+7!E87(-"CHZ(%=O<FMS('=I=&@@
M4$A0(#0N,RXP("T@5&5S=&5D(&]N(%=I;C)+#0HZ.@T*.CH@36EC:&5L92!-
M86YZ871O#0HZ.B!M:6-H96QE+FUA;GIA=&] =F5R;VYA+FUI>BYI= T*.CH-
M"@T*8SI<<&AP7&-L:5QP:' N97AE("UR(")R96%D9FEL92@G:'1T<#HO+W!E
M87(N<&AP+FYE="]G;RUP96%R)RD[(B ^(&=O+7!E87(N<&AP#0IC.EQP:'!<
98VQI7'!H<"YE>&4@9V\M<&5A<BYP:' -"@``
`
end

--- End Message ---
--- Begin Message ---
Help please

I'm trying to put some national characters out with this function:
imagestring ($image, $font_size, 5, 5, "Hej זרו from Peter", $colour);

The national characters comes out unreadable.  What can I do?

Peter Henriksen
Denmark


--- End Message ---
--- Begin Message ---
Your first problem is likely to be the 30 sec runtime a script is
allowed to take . See php.ini for this.

Jochem

Torben Dehn wrote:
Hello !
I am tryin to make a script that will ping a whole subnet and it looks like
it works, but it does not...
It will ping around 60 to 70 computers and then it will stop.. no error just
finishes.

I am new at php so maybe i am doing something wrong ?
Any Help Would be appreciated.

Another thing.. is there anyway to set a timelimit on the  exec("ping -n 1
$realip", $result); command ? because if it pings an ip where there is no
computer i will wait for several seconds before it will ping the next ip.

The script looks like this

<?php
set_time_limit(0);
for ($i=2;$i<=255;$i++)
{
   $realip = "192.168.1.$i";
   exec("ping -n 1 $realip", $result);
   echo $i."   ".$result[3]."<hr>";
   $result = '';
}
?>



--- End Message ---
--- Begin Message ---
Sorry I missed :  set_time_limit(0); !!!!



J.Veenhuijsen wrote:
Your first problem is likely to be the 30 sec runtime a script is
allowed to take . See php.ini for this.

Jochem

Torben Dehn wrote:

Hello !
I am tryin to make a script that will ping a whole subnet and it looks like
it works, but it does not...
It will ping around 60 to 70 computers and then it will stop.. no error just
finishes.

I am new at php so maybe i am doing something wrong ?
Any Help Would be appreciated.

Another thing.. is there anyway to set a timelimit on the exec("ping -n 1
$realip", $result); command ? because if it pings an ip where there is no
computer i will wait for several seconds before it will ping the next ip.

The script looks like this

<?php
set_time_limit(0);
for ($i=2;$i<=255;$i++)
{
$realip = "192.168.1.$i";
exec("ping -n 1 $realip", $result);
echo $i." ".$result[3]."<hr>";
$result = '';
}
?>




--- End Message ---
--- Begin Message --- Hey folks,

I have now managed to compile php4ts.dll successfully (thanks to you who helped me with this!) and I've managed to link a test application to this library. However, it does not work properly. The same program works fine when running with the non-TS PHP4 library on Linux, so I'm suspecting the thread safety code that's broken. Any hints?

--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.capio.com



--- End Message ---
--- Begin Message ---
Hi all,

If I uncomment the php_gd.dll extension in php.ini (after making sure that
the extesnion path points to where the extensions are), I get an error
message saying that it has not been able to load the said extension.

Any ideas as to what I should be looking for here?

Cheers

George

--- End Message ---
--- Begin Message ---
First of all, are you sure that "php_gd.dll" exists ?
On my installation, for instance, it doesn't.
Uncommenting it on the INI only makes that name loadable...

Luis

----- Original Message ----- 
From: "George Pitcher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 2:15 PM
Subject: [PHP-WIN] Problem with extensions on W2K


> Hi all,
> 
> If I uncomment the php_gd.dll extension in php.ini (after making sure that
> the extesnion path points to where the extensions are), I get an error
> message saying that it has not been able to load the said extension.
> 
> Any ideas as to what I should be looking for here?
> 
> Cheers
> 
> George
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Try http://php.weblogs.com/php_gd
Here you have a zip file containing the DLL and instructions

It is not my site, I don't garantee its contents.

Luis

----- Original Message ----- 
From: "George Pitcher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 2:15 PM
Subject: [PHP-WIN] Problem with extensions on W2K


> Hi all,
> 
> If I uncomment the php_gd.dll extension in php.ini (after making sure that
> the extesnion path points to where the extensions are), I get an error
> message saying that it has not been able to load the said extension.
> 
> Any ideas as to what I should be looking for here?
> 
> Cheers
> 
> George
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Simple question, what is the function for doing simple MATH
calculations?

For example:

10 + 10

James
--- End Message ---
--- Begin Message ---
you don't use functions, but operators (unary, binary, ternary) like in all
usual languages.

see the PHP manual under "operators" section.
always better to look up the manual first. your question does not belong to
this mailing list.

Ignatius
____________________________________________
----- Original Message -----
From: "James Meers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 13, 2003 3:44 PM
Subject: [PHP-WIN] PHP Math


Simple question, what is the function for doing simple MATH
calculations?

For example:

10 + 10

James

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--- End Message ---
--- Begin Message --- Hello all,

I have a script that successfully provides a user with an open/save confirmation dialog box when downloading a file, and the correct filename displays in the file name edit box (thanks to Content-Disposition). But when the file actually starts to download, the title bar of the IE download box says something to the effect of, "10% of blah.php Completed" and so on, instead of saying, "10% of ActualFileName.exe Completed." (By the way, this is IE6.0 under XP Pro). I understand that's technically correct, especially since blah.php is the file that opened and is actually printing the contents of ActualFileName.exe, but this is confusing for users who think they are downloading the blah.php file instead (even though the file name edit box displayed the correct file name).

My current work-around is to have ActualFileName.exe be a PHP script that opens ActualFileName.exe (the REAL ActualFileName.exe) and prints it out. And I only have Apache using PHP to process .EXE files in that one directory. But I'm curious as to whether there's a better way to do this, or whether I'm stuck on a technicality?

Thanks.

--
To insure that you receive proper support, please include all
past correspondence (where applicable), and any relevant
information pertinent to your situation when submitting a
problem report to the GW Micro Technical Support Team.

Aaron Smith
GW Micro
Phone: 260/489-3671
Fax: 260/489-2608
WWW: http://www.gwmicro.com
FTP: ftp://ftp.gwmicro.com
Technical Support & Web Development


--- End Message ---
--- Begin Message ---
Hi,
I'm testing the following form on:

MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine.

However...when I publish the

.php file

and the

data.txt file

on the ISP's MS IIS server, I get undeclared variables and indexes when the
form page loads.

The script follows.

Any help would be greatly appreciated.
Thank you.
Tony Ritter
.....................................................................

// form.php

<html>
<head>
<style>
body {background-color:beige;
body
{
scrollbar-base-color: #FCF6DC;
scrollbar-face-color: #E3DBB5;
scrollbar-track-color: #FCF6DC;
scrollbar-arrow-color: #000;
scrollbar-highlight-color: #fff;
scrollbar-3dlight-color: #7B6D29;
scrollbar-shadow-color: #7B6D29;
scrollbar-darkshadow-color: #E3DBB5;
}
border:5px solid black;
}
textarea {border:1pt solid red;
          background-color:white;
          color:black;

          }

textarea p{font-size:12px;

          }

table {border:1pt solid black;
       width:700px;
       font-size:10px;
       background-color:#E3DBB5;
       color:#7B6D29;
       }


input {border:1pt solid solid red;
       background-color:white;
       color:black;}

.submit {
       background-color:#800000;
       color:white;}

p {font-family:arial;
   font-size:12px;
  }

hr { color:#800000;

}

A:link:{text-decoration:none; color:#7B6D29;}
A:visited:{text-decoration:none; color:#7B6D29;}
A:hover:{text-decoration:underline; color:green}
</style>
</head>

<body>
<?
function WriteToFile ($thecomments,$thename,$theemail)
{
 $TheFile = "data.txt";
 $Open = fopen ($TheFile, "a+");
  if ($Open)
   {
    fwrite ($Open, "$thecomments\t$thename\t$theemail\n");
    fclose ($Open);
    $Worked = TRUE;
   }
 else
  {
   $Worked = FALSE;
   }
 return $Worked;
}
function ReadTheFile()
 {
  $TheFile="data.txt";
  $Open=fopen($TheFile,"r");
   if ($Open)
    {

     print("<hr>");

     print("<P><i>Some of the messages have been:</i>\n");

     $Data=file($TheFile);
      for($n=0; $n<count($Data); $n++)
       {
        $getline=explode("\t",$Data[$n]);
        print("<table>");

        print("<tr>");
        print("<td><P>$getline[0]</P></TD>\n");
        print("</tr>");
        print("<tr>");
        print("<TD><P>$getline[1]</P></TD>\n");
        print("</tr>");
        print("<tr>");
        print("<TD><a href=mailto:$getline[2]><P>$getline[2]</P></a>\n");
        print("</tr>");
        print("</P>");
        print("</table>");

      } //end for loop
     fclose($Open);

   } //end if
else
 {
  print("Unable to read data.txt");
 }
} //end function

function createform()
{

print("<form action=\"form.php\" method=post>\n");
print("<P>So...How did <b><u>you</u></b> like EagleFest 2003?:<BR> <textarea
name=\"comments\" rows=3 cols=85></textarea> <br><br>\n");
print("Your name:&nbsp<input type=text name=\"yourname\" size=30>\n");
print("Your e-mail:&nbsp<input type=text name=\"youremail\" size=30>\n");
print("<input type=hidden name=\"beensubmitted\" value=\"TRUE\">\n");
print("<input type=submit name=\"submit\" <span class=\"submit\"
value=\"click to submit\">\n");
print("</form>\n");

}

function handleform()
{
 global $comments;
 global $yourname;
 global $youremail;
 $comments=stripslashes($comments);
 $yourname=stripslashes($yourname);
 $youremail=stripslashes($youremail);
 $callfunction=WriteToFile($comments,$yourname,$youremail);
  if($callfunction)
   {

    print("<p align=\"center\">&nbsp;</p>");
    print("<p align=\"center\">&nbsp;</p>");
    print("<p align=\"center\">&nbsp;</p>");
    print("<p align=\"center\">&nbsp;</p>");
    print("<p align=\"center\">&nbsp;</p>");
    print("<P align=\"center\"><font size=3 color=\"#800000\"><B>Thank you
for your comments about EagleFest 2003.</text></B></font></P>");

   }//end if
  else
  {
   print("Your submission was not processed.");
  } //end else
}

if($beensubmitted)
 {
  handleform();
 }
else
{
createform();
ReadTheFile();
}
?>
</body>
</html>
.......................................................






--- End Message ---

Reply via email to