Re: php and javascript
| From: | Antoine | Date: | Wed, 19 Mar 2003 14:58:20 +0000 |
| Subject: | Re: php and javascript | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140284@lists.php.net to get a copy of this message | ||
thank you so much... I got the function working
On Tue, 2003-03-18 at 17:52, Jim Lucas wrote:
> you are trying to include a variable inside a single quoted string.
>
> change the echo line to this.
>
> echo "<script language='javascript'> window.location =
> '$thepage'>
> </script>";
>
> Jim
> ----- Original Message -----
> From: "Antoine" <asolomon15@nyc.rr.com>
> To: "php list" <php-general@lists.php.net>
> Sent: Tuesday, March 18, 2003 2:52 PM
> Subject: [PHP] php and javascript
>
>
> > I wrote a function to redirect my page to another one. But for some
> > reason I keep getting an error.
> > here is the function I made
> >
> > function js_pointer_login($thepage)
> > {
> > echo '<script language="javascript"> window.location =
> > '$thepage'
> > </script>';
> > }
> >
> >
> > --
> > Antoine <asolomon15@nyc.rr.com>
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
--
Antoine <asolomon15@nyc.rr.com>