Re: [PHP] radio buttons

2003-02-24 Thread Gonzo
> he wants 3 radio buttons on a form .. something to the affect of:
> this is a general post
> this is an urgent post
> this is a message i need to post because it bothers me
>
> would this be the right setup for radio buttons and if so what is
> the best way to tell what one of them is checked without using
> lots of if else statements or is that unavoidable?
>
> or is there even a better way to set up radio buttons
> altogether... i havent worked with radio buttons all that much
> and dont know that much about them as far as php goes...

You should check out libHtmlForm at
  http://nirvani.org/software/libHtmlForm/

Cheers,
Gonzo



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



Re: [PHP] cookie problemes

2003-02-24 Thread Gonzo
> hy,
> i have a probleme with cookie.
> this is my code "Setcookie($n_sessid, $sessid,
> time()+$cookie_life);" and work, 80%.
> some machines (all windows - 98 and XP) with internet explorer
> (ver.5 and 6, some with the last upgrade) can write the cookie.
> same machines have
> cookie enable because the users can read the mail from yahoo.
> somebody can help me with what i made wrong?
> kale

This is a known issue with IE.  You should set the "path" and
"domain" also and most likely these problems will vanish.

Gonzo



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



RE: [PHP] cookie problemes

2003-02-24 Thread Gonzo

> What "path" and what "domain"?

See "path" and "domain" here:

  http://php.net/setcookie

Gonzo





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



Re: [PHP] creating flat versions of php pages

2003-02-24 Thread Gonzo
> hi guys we have 2 very high traffic sites and we need
> to be able to make these pages load faster , we are
> coming up with a solution to make flat file versions of
> the sites in the short term before we start using
> caching technologhies is this the right way to go about
> this ?

I think anyone trying to answer this would need to know
more about your setup.  Caching is not necessarily the
answer if a dynamic page is dynamic enough every time to
be different.  (Please keep this on-list)

> also whats is the best way to parse a php page
> ie foo.php?id=1, foo.php?id=2 with the contents of each
> story to a file and update all the links. maybe with
> naming conventions like foo/1.html, foo/2.html in a mod
> rewrite style

I like using Variables from URI:

  http://nirvani.org/software/variables_from_uri/

Gonzo



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



RE: [PHP] cookie problemes

2003-02-24 Thread Gonzo
> :( don't work.
> I put "Setcookie($n_sessid, $sessid,
> time()+$cookie_life, $path,
> $domain, 0);"
> In script but don't work. Same. No cookie in cookie
> folder.
> Other idea?

Nothing other than 1) What are in the $path and $domain
variables? and 2) did you grep in your cookies folder?

Sometimes IE does not name the file like you would expect.

Gonzo



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



RE: [PHP] cookie problemes

2003-02-24 Thread Gonzo
> $path = "/";
> $domain = ".mydomain.ro";
> And in my cookie folder i find a cookie named:
> [EMAIL PROTECTED] But other computer (with
> problems) i don't have any cookie with same name.
> And if i reload the page and print
> $HTTP_COOKIE_VARS[$n_sessid]
> it's nothing. I have 12 computers and 10 are ok.

Check the clocks on the 2 machines that do not have the
cookies.

Gonzo



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