RE: [PHP] php varible in Javascript alert()

2006-04-11 Thread Chrome
ttinger Sent: 12 April 2006 01:32 To: Chrome Cc: Mace Eliason; php-general@lists.php.net Subject: Re: [PHP] php varible in Javascript alert() Yes, alert() as in the javascript: var $errorMsg = <?php echo addslashes($phpError) ?>; alert('error found: ' + $errorMsg); On 4/11/0

Re: [PHP] php varible in Javascript alert()

2006-04-11 Thread Anthony Ettinger
; Dan > > --- > http://chrome.me.uk > > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony > Ettinger > Sent: 12 April 2006 00:58 > To: Chrome > Cc: Mace Eliason; php-general@lists.php.net > Subj

RE: [PHP] php varible in Javascript alert()

2006-04-11 Thread Chrome
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Ettinger Sent: 12 April 2006 00:58 To: Chrome Cc: Mace Eliason; php-general@lists.php.net Subject: Re: [PHP] php varible in Javascript alert() On 4/11/06, Chrome <[EMAIL PROTECTED]> wrote: > Does $errorMessage have an

Re: [PHP] php varible in Javascript alert()

2006-04-11 Thread Anthony Ettinger
to look for :) > > Dan > > --- > http://chrome.me.uk > > -Original Message- > From: Mace Eliason [mailto:[EMAIL PROTECTED] > Sent: 11 April 2006 19:41 > To: php-general@lists.php.net > Subject: [PHP] php varible in Javascript alert() > > Hi,

RE: [PHP] php varible in Javascript alert()

2006-04-11 Thread Chrome
Mace Eliason [mailto:[EMAIL PROTECTED] Sent: 11 April 2006 19:41 To: php-general@lists.php.net Subject: [PHP] php varible in Javascript alert() Hi, I am not sure why this won't work I am pretty sure I have done it before; if($error) { echo $errorMessage; // for testing error message is d

Re: [PHP] php varible in Javascript alert()

2006-04-11 Thread Paul Novitski
> On 4/11/06, Mace Eliason <[EMAIL PROTECTED]> wrote: > > I am not sure why this won't work I am pretty sure I have done it before; > > > > if($error) > > { > > echo $errorMessage; // for testing error message is displayed to screen > > echo"alert('$errorMessage');"; > > } At 11:19 AM

Re: [PHP] php varible in Javascript alert()

2006-04-11 Thread Anthony Ettinger
actually... alert(''); On 4/11/06, Anthony Ettinger <[EMAIL PROTECTED]> wrote: > alert('echo $errorMessage'); > > On 4/11/06, Mace Eliason <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I am not sure why this won't work I am pretty sure I have done it before; > > > > if($error) > > { > > echo $err

Re: [PHP] php varible in Javascript alert()

2006-04-11 Thread Anthony Ettinger
alert('echo $errorMessage'); On 4/11/06, Mace Eliason <[EMAIL PROTECTED]> wrote: > Hi, > > I am not sure why this won't work I am pretty sure I have done it before; > > if($error) > { > echo $errorMessage; // for testing error message is displayed to screen > echo"alert('$errorMessage');"; >

RE: [PHP] php varible in Javascript alert()

2006-04-11 Thread Jay Blanchard
[snip] if($error) { echo $errorMessage; // for testing error message is displayed to screen echo"alert('$errorMessage');"; } [/snip] What does $error contain? Echo it's output to the screen too, for testing. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] php varible in Javascript alert()

2006-04-11 Thread Mace Eliason
Hi, I am not sure why this won't work I am pretty sure I have done it before; if($error) { echo $errorMessage; // for testing error message is displayed to screen echo"alert('$errorMessage');"; } I am capturing all the errors from a form and then output them all at once Thanks for any help

Re: [PHP] Varible calling a define value

2004-12-13 Thread Dev
I actually figure this out from the web site and had to use constant(); At 04:36 PM 12/13/2004, you wrote: Hello all, I am setting up a page that I would like to use DEFINE to retrieve more information about abriviations in a database. The database part all works just fine. Currently i have a Def

RE: [PHP] Varible calling a define value

2004-12-13 Thread Jay Blanchard
[snip] Currently i have a Defiune setup of: define("THS", "This is a test"); I also have a string value of $that='THS'; When I echo out $that it get THS. I want to echo out $that and get: This is a test. How can I do this? [/snip] Remove the quotes around THS $that = THS; echo $that; -- PHP Gen

Re: [PHP] Varible calling a define value

2004-12-13 Thread Chris Boget
> Currently i have a Defiune setup of: > define("THS", "This is a test"); > I also have a string value of > $that='THS'; > When I echo out $that it get THS. > I want to echo out $that and get: > This is a test. > How can I do this? $that = THS You don't want the quotes. thnx, Chris -- PHP Gene

[PHP] Varible calling a define value

2004-12-13 Thread Dev
Hello all, I am setting up a page that I would like to use DEFINE to retrieve more information about abriviations in a database. The database part all works just fine. Currently i have a Defiune setup of: define("THS", "This is a test"); I also have a string value of $that='THS'; When I echo out

Re: [PHP] varible

2004-04-12 Thread edwardspl
"Chris W. Parker" wrote: > [EMAIL PROTECTED] > ??on Monday, April 12, 2004 8:32 AM said: > > > Is there a solution ( without open global ) , then send the value of > > the varible of list.php to view.php ? > > you can put the variables in $_SESSION or pass them via the q

RE: [PHP] varible

2004-04-12 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, April 12, 2004 8:32 AM said: > Is there a solution ( without open global ) , then send the value of > the varible of list.php to view.php ? you can put the variables in $_SESSION or pass them via the querystring. hth, chris. -- PHP G

[PHP] varible

2004-04-12 Thread edwardspl
Dear You, Is there a solution ( without open global ) , then send the value of the varible of list.php to view.php ? list.php : $headers[$idx]"; ? } ?> view.php : "); ? echo(imap_fetchheader($link,$num)); ? echo(""); ? echo(imap_body($link,$num)); ? echo(""); ?> Thank for your help so much

Re: [PHP] varible in url question

2002-07-10 Thread Philip Olson
Please read this manual page, it has examples to suit your needs: http://www.php.net/manual/en/language.variables.external.php Regards, Philip Olson On Wed, 10 Jul 2002, sven vandamme wrote: > on my page (lessen.php) > > i have a variable $sort > > if this varible is empty if enterd the p

RE: [PHP] varible in url question

2002-07-10 Thread Chris Kay
, 11 July 2002 6:41 AM > To: [EMAIL PROTECTED] > Subject: [PHP] varible in url question > > > on my page (lessen.php) > > i have a variable $sort > > if this varible is empty if enterd the page then it will be > set on 'day' > > i have 3

Re: [PHP] varible in url question

2002-07-10 Thread Richard Baskett
ul 2002 22:40:48 +0200 > To: [EMAIL PROTECTED] > Subject: [PHP] varible in url question > > on my page (lessen.php) > > i have a variable $sort > > if this varible is empty if enterd the page then it will be set on 'day' > > i have 3 links in the page >

[PHP] varible in url question

2002-07-10 Thread sven vandamme
on my page (lessen.php) i have a variable $sort if this varible is empty if enterd the page then it will be set on 'day' i have 3 links in the page lessen.php?sort=day lessen.php?sort=game lessen.php?sort=player so these links refure to the same page (itself) on clicked it opens itself and sh

Re: [PHP] Varible Varibles

2002-06-13 Thread Jason Wong
On Friday 14 June 2002 00:38, John Holmes wrote: > I think you're missing the point of variable variables. Quite :-) > I kind of consider variable variables the poor mans array. Most any > solution you think of with variable variables could be better solved by > using arrays. Actually variable

RE: [PHP] Varible Varibles

2002-06-13 Thread Pushkar Pradhan
mans array. Most any > solution you think of with variable variables could be better solved by > using arrays. > > ---John Holmes... > > > -Original Message- > > From: Peter [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, June 12, 2002 10:42 PM > >

RE: [PHP] Varible Varibles

2002-06-13 Thread John Holmes
ou think of with variable variables could be better solved by using arrays. ---John Holmes... > -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 10:42 PM > To: Php > Subject: [PHP] Varible Varibles > > howdy, > I'm just c

RE: [PHP] Varible Varibles

2002-06-12 Thread Peter
2002 12:44 PM To: 'Peter'; Php Subject: RE: [PHP] Varible Varibles well, the first method is the same as saying $a = "foo"; $foo = "bar"; echo "$a $foo"; whereas the second method is appending "bar" to $a (thus making it "foobar") In

RE: [PHP] Varible Varibles

2002-06-12 Thread Martin Towell
Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 12:42 PM To: Php Subject: [PHP] Varible Varibles howdy, I'm just curious here about varible varibles ... I know that you can, well it's documented that you can, do the following which will produce foo bar n

[PHP] Varible Varibles

2002-06-12 Thread Peter
howdy, I'm just curious here about varible varibles ... I know that you can, well it's documented that you can, do the following which will produce foo bar now what I am curious about is, how much of a difference does that really make when you compare it to.. Cheers Peter "the only dum

Re: [PHP] [php] Varible declaration

2001-03-23 Thread Chris Anderson
thats good, in the future a code snippet helps - Original Message - From: "Chris Doyle" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Friday, March 23, 2001 11:12 PM Subject: Re: [PHP] [php] Varible declaration > no problem i have

Re: [PHP] [php] Varible declaration

2001-03-23 Thread Chris Doyle
no problem i have got it now.. needed to declare it global. - Original Message - From: "Chris Anderson" <[EMAIL PROTECTED]> To: "Chris Doyle" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]> Sent: Friday, March 23, 2001 6:40 AM Subject

Re: [PHP] [php] Varible declaration

2001-03-23 Thread Chris Doyle
gt; Sent: Friday, March 23, 2001 6:40 AM Subject: Re: [PHP] [php] Varible declaration > Remove the '' around the 1. > - Original Message - > From: "Chris Doyle" <[EMAIL PROTECTED]> > To: "PHP List" <[EMAIL PROTECTED]> > Sent: Friday, M

Re: [PHP] [php] Varible declaration

2001-03-23 Thread Chris Anderson
Remove the '' around the 1. - Original Message - From: "Chris Doyle" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Friday, March 23, 2001 9:44 PM Subject: [PHP] [php] Varible declaration Hi, when I declare the varible $cid like

[PHP] [php] Varible declaration

2001-03-23 Thread Chris Doyle
Hi, when I declare the varible $cid like this "http://myserver/index.php?cid=1" it works fine, but when i declare it in the code like this $cid = '1'; it doesn't work... is this maybe because of the level i declare the varible? how to i declare it the same as "http://myserver/index.php?cid=1