Re: [PHP] Form data is not "remembered"

2001-01-24 Thread Klepto

Try the "GET" method in the form.

Jaks
- Original Message -
From: Alain Fontaine <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 2:11 AM
Subject: [PHP] Form data is not "remembered"


> Hi,
>
> I have a page with a couple of form fields that are being POSTed to a
> processing PHP script. The page that contains these form fields is itself
a
> PHP page that uses sessions and so on.
>
> I have to make "server-side data validation" on the fields because of
their
> complexity. When the user hits submit and comes to the result page, if
there
> was any error I ask the user to go back to the form and correct the
> mistakes, using either his browser BACK button or by clicking on a link
that
> does a javascript:history.back().
>
> The problem is, when the user gets back to the form page, all of the
values
> he had typed in are gone, and he has to start all over again. Does anyone
> have an idea why this is so, and how to circumvent it without saving the
> user data into a session variable and then setting it back again once the
> user hits the form page again ? I have seen many pages where your previous
> data would stay in the form after you make a "Back" operation, but here,
it
> disappears.
>
> Thanks for any ideas, and have a very nice day.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Fopen

2001-01-26 Thread Klepto

Yeah, in the following fragment...

 $fp = fopen("http://www.parentprofiles.com/clicker.php?profile_id=" .
$this-profile_id
 . "&code=1","r");

You set up $fp to be a pointer to the object, in this case, a file.  Now you
need to pull data out of it.  Um, unfortunately, I don't remember how to do
this.  If this were a pointer to a MySQL connection, it would look like
this...

mysql_fetch_row($fp)

So, when you echoed the $fp, you are echoing the pointer position in the
file.

Hope that helps...

Jaks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]