Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] URL encoding From: Richard Lynch (richard <email protected>)
Date: 05/15/00

In article <Pine.BSF.4.21.0005141725220.890-100000 <email protected>>,
jeff <email protected> (Jeff MacDonald) wrote:

> I'm trying to write a script that when people upload an image
> they can preview the image before hand. Basically by clicking
> a button , which runs some java script to pop up a window and
> display <img src=file:$uploadvar) (i'll include the source below)

> I tried playing iwth the rawurlencode function to no avail. Wondering if
anyone
> has any groovy ideas they could throw at me.

Try file://$uploadvar

I think the // will make it a URL on all platforms with the forward slashes.

(Don't ignore us Mac users, okay?)

-- 
Richard Lynch                | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA        | http://www.L-I-E.com/artists.htm
http://www.zend.com          | (this has nothing to do with Zend, duh!)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>