Re: Using PHP to reload a page w/variable.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

    In PHP you evaluate a string with "string comparison" functions.
    It is viewed in asterisks, but passed quite normally.

    As for the rest, you start by checking a variable on your page, and if
it denotes an error on a password, echo your message and proceed to read it
again, and the same for other situations.
    Another way is to echo the error message on the script that gets the
error, and then recaling the first one.
    The recalling should me made by the header function, which implies a PHP
script that echoes anything until it reaches the "header" statement.

Luis

----- Original Message -----
From: "Roderick Martin" <rmartin@mail.state.il.us>
To: "'PHP Help Desk'" <php-windows@lists.php.net>
Sent: Wednesday, November 19, 2003 7:37 PM
Subject:  Using PHP to reload a page w/variable.


> I'm finding it hard to believe this is as difficult as it appears, but
> everywhere I search indicates that what I want to do is not an easy
> task.
>
> How do you code this?
>
> You have a user signup page and the user fills it out, filling out two
> password fields to ensure they typed it in properly and hit Submit.
>
> How in PHP do you evaluate the password strings (or other strings like
> checking email for a valid email address) and if something is wrong,
> reload the page.
>
> In my case, I have one page that does multiple things and I pass
> variables to determine what parts of the page load, so ideally, I'd
> like to reload the page and pass a variable so I can reveal some text
> like "Please retype your password".
>
> Is it really as difficult as some sites make it out to be? It seems to
> be a pretty common thing to do.
>
> Thanks!
>
> --
> 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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux