php-windows Digest 29 Sep 2004 14:33:27 -0000 Issue 2413

Topics (messages 24658 through 24664):

Re: Form Variable Storage
        24658 by: Tom Joyce

Hidden FORM tag in PHP
        24659 by: susilo
        24660 by: George Pitcher

Re: OpenSSL in Win32
        24661 by: Thomas Hove
        24662 by: Thomas Hove

ereg_replace help wanted
        24663 by: George Pitcher
        24664 by: trlists.clayst.com

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 ---
I would have something like this:
Your validation page has this:
<input type="text" name="name" size="30" value="<?php echo($name); ?>">
...
Essentially, just put the variable as value, or if it's a pull down list:
<SELECT NAME="agerange" SIZE="1">
<OPTION SELECTED><?php echo($agerange); ?>
<OPTION>13-17
<OPTION>18-25
<OPTION>26-35
<OPTION>36-45
<OPTION>46-55
<OPTION>56-60
<OPTION>61-75
<OPTION>76+
</SELECT>

That should work...other than that, it's just a copy of "form.php"
inside of "validate.php"...or whatever you've called them.


On Wed, 29 Sep 2004 08:50:17 +0700, susilo <[EMAIL PROTECTED]> wrote:
> Dear ALL,
>             I have a INPUT FORM APPLICATION using php, but when I
> submit my form into validation php form and go to back again default
> input form application its always showing message like this  bellow :
> 
> Warning: Page has Expired
> The page you requested was created using information you submitted in a
> form. This page is no longer available. As a security precaution,
> Internet Explorer does not automatically resubmit your information for
> you.
> 
> To resubmit your information and view this Web page, click the Refresh
> button
> 
> So guys, why this happened? Because I just want my data input Still
> Memorize my input in previous form.
> 
> Regards,
> 
> 
> Susilo
> 
> 



-- 
Thomas Joyce
[EMAIL PROTECTED]
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
How to input hidden type FORM tag in PHP, and the SELECT TAG form
variabel option
 
Regards,
 
susilo
 

--- End Message ---
--- Begin Message ---
susilo wrote:

> How to input hidden type FORM tag in PHP, and the SELECT TAG form
> variabel option
>

Not quite sure what yo mean here but if you want to have a form input type
to be hidden thats HTML amd nothing to do with PHP.

George

--- End Message ---
--- Begin Message ---
Hello Edin!

When using your php4ts.dll for PHP 4.3.9 I still get the dreaded warning

[Wed Sep 29 10:15:07 2004] [warn] Loaded DSO php/sapi/php4apache.dll uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)

Do you know how to get rid of it???

best regards

Thomas

"Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have updated that page to include newly released 4.3.9.
>
> Cheers,
> Edin
>
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On 21 Sep 2004 [EMAIL PROTECTED] wrote:
> >
> > > I would like to know how to get OpenSSL support working in Win32.
> >
> > Never mind, I figured it out.  I had to go back from 4.3.8 to 4.3.7
> > then download the SSL-enabled php4ts.dll from
> > http://ftp.emini.dk/pub/php/win32/openssl/.
> >
> > --
> > Tom

--- End Message ---
--- Begin Message ---
Hello Edin!

When using your php4ts.dll for PHP 4.3.9 I still get the dreaded warning

[Wed Sep 29 10:15:07 2004] [warn] Loaded DSO php/sapi/php4apache.dll uses
plain Apache 1.3 API, this module might crash under EAPI! (please recompile
it with -DEAPI)

Do you know how to get rid of it???

best regards

Thomas

"Edin Kadribasic" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have updated that page to include newly released 4.3.9.
>
> Cheers,
> Edin
>
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On 21 Sep 2004 [EMAIL PROTECTED] wrote:
> >
> > > I would like to know how to get OpenSSL support working in Win32.
> >
> > Never mind, I figured it out.  I had to go back from 4.3.8 to 4.3.7
> > then download the SSL-enabled php4ts.dll from
> > http://ftp.emini.dk/pub/php/win32/openssl/.
> >
> > --
> > Tom

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

I don't want to spend a lot of time leaning how to use this function but I
have a problem that I think it can solve.

I have a web form that allows the user to (amongst other things) submit a
pagerange to my database. Using '-' and ',' as separators, I am able to
calculate the number of pages being submitted.

I can handle roman or arabic numerals and a typical range might look like:
'ix-xxvii,21-30,64' and that would usually give  me a page count of 30.

The problem is that I think that some of my users are pasting the range in,
rather than re-typing (I don't really want to stop them from pasting) and I
am sure that sometimes the '-' is coming over as something other than a
conventional hyphen.

Can anyone suggest a filter that will handle my hyphens correctly,
regardless of what type of hyphen the user is entering?

MTIA

George in Oxford

--- End Message ---
--- Begin Message ---
On 29 Sep 2004 George Pitcher wrote:

> The problem is that I think that some of my users are pasting the range in,
> rather than re-typing (I don't really want to stop them from pasting) and I
> am sure that sometimes the '-' is coming over as something other than a
> conventional hyphen.
> 
> Can anyone suggest a filter that will handle my hyphens correctly,
> regardless of what type of hyphen the user is entering?

You probably don't need ereg_replace (though if I did, I'd actually use 
preg_replace), you can probably do it more simply with str_replace.  
But first you have to know what characters you're actually getting.  
Say they are '*', '_', and '~' (just an example), then you can do it 
easily with:

        $newstring = str_replace(array('*', '_', '~'), array('-', '-', '-'), 
$string);

Or with:

        $newstring = preg_replace('/[*_~]/', '-', $string);

Another approach would be to replace all non-alphanumeric characters 
(other than commas) with a '-', then you are treating all punctuation 
characters as dashes:

        $newstring = preg_replace('/[^a-zA-Z0-9,]/', '-', $string);

But that might be overkill ...

--
Tom

--- End Message ---

Reply via email to