Date: 11/27/99
- Next message: Tirumaran M: "[PHPLIB] Installation Problem for php3 for PWS"
- Previous message: Lars S. Geisler: "[PHPLIB] My form results disappear and I can't keep the PHPLIB-"cookie""
- In reply to: Lars S. Geisler: "[PHPLIB] My form results disappear and I can't keep the PHPLIB-"cookie""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Lars S. Geisler" wrote:
> I have two problems with PHP/PHPLIB:
>
> 1. When I do Page_Open(Array("sess" => "My_Session")), any results from a
> form on the page before are gone. If I don't do Page_Open, I can access the
> results without problems.
Append the action of your form with the purl() class method:
<form method="post" action="<?php $sess->purl("yourpage.php3"); ?>">
or , possibly use a hidden field for the $sess variable.
or, I think that oohforms automatically sticks a hidden session variable
in the form when the action is get ( not to sure on that one ).
>
> 2. I can't find out how to change all the URL's in a string. What I want to
> do is to change a string like this:
>
> "Hi! Check my <a href=\"guestbook.php3\">guestbook</a>."
>
> into
>
> "Hi! Check my <a
> href=\"guestbook.php3?My_Session=the_session\">guestbook</a>."
>
> I want to apply the $sess->url() function on the string. How can I do that?
You'll have to do this manually:
<a href="<?php $sess->purl("showoff.php3")?>">Load</a> a more complex example (login as kris,
password test).<br>
(this is from the source of the example PHPLIB index.html page)
A good source of information is the mailing list archives at:
http://www.progressive-comp.com/Lists/?l=phplib&r=1&w=2&b=199911
-Shawn
>
>
> Thank you very much in advance,
> Lars Sehested Geisler
> larssg <email protected>
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Tirumaran M: "[PHPLIB] Installation Problem for php3 for PWS"
- Previous message: Lars S. Geisler: "[PHPLIB] My form results disappear and I can't keep the PHPLIB-"cookie""
- In reply to: Lars S. Geisler: "[PHPLIB] My form results disappear and I can't keep the PHPLIB-"cookie""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

