[PHP] Re: JavaScript Injection ???

2011-04-18 Thread Shawn McKenzie
On 04/18/2011 12:06 PM, tedd wrote: Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in: script alert(Evil Code);/script and a JavaScript alert would be shown. But now my demo no longer works. So, what happened? Was there a

[PHP] Re: JavaScript Injection ???

2011-04-18 Thread tedd
At 3:10 PM -0500 4/18/11, Shawn McKenzie wrote: On 04/18/2011 12:06 PM, tedd wrote: Hi gang: Quite some time ago I had a demo that showed Javascript injection. It was where a user could type in: script alert(Evil Code);/script and a JavaScript alert would be shown. But now my demo no

[PHP] Re: Javascript and PHP interaction

2007-03-08 Thread Mikey
Alain Roger wrote: Hi, I would like to know if there is a way how PHP code can extract from ElementID some property values. for example, i have the following PHP page : ?php print div class='maindiv' id='id_maindiv'my main div/div; $new_Width = somefunction(); print div class='childdiv'

[PHP] Re: Javascript Calendar and PHP

2005-04-06 Thread Nadim Attari
What Javascript calendar works good with PHP? Thanks http://www.blueshoes.net/en/javascript/datepicker/ Regards, Nadim Attari -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Javascript Calendar and PHP

2005-04-06 Thread Joe Harman
-- Forwarded message -- From: Joe Harman [EMAIL PROTECTED] Date: Apr 6, 2005 2:50 AM Subject: Re: [PHP] Re: Javascript Calendar and PHP To: Nadim Attari [EMAIL PROTECTED] interakt has a great one that is used with field forms... it's like $30 or something... it's actually

[PHP] Re: Javascript Calendar and PHP

2005-04-05 Thread chris
I do not know of a specific calendar, but communication between JavaScript and php is most commonly handled via a form post. Think of it along these lines. 1 - client downloads your page with JS calendar script. 2 - client clicks on a calendar day. 3 - onclick event submits the day via post

[PHP] Re: JavaScript Enabled?

2004-08-05 Thread Kim Steinhaug
Indeed an old thread this one, but I still would like to know if someone have some input on some ways of solving this dilemma. Surely it is easy to detect javascript when its enabled, but what to do when it's not enabled is a much more interesting approach. I have several systems online which

[PHP] Re: javascript type cast

2004-08-03 Thread Josh Close
...I found you can do var*1 to get it to type cast. Thanks. -Josh On Tue, 3 Aug 2004 11:28:16 -0500, Josh Close [EMAIL PROTECTED] wrote: Is there any way to do a typecast in javascript? I know you can in 2.0, but that won't work here. I have an input field and I need to add a number

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-27 Thread Scott Fletcher
Good thinking... I like without the substr() because substr() take more time than we want it to be FletchSOD Matt M. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --snip-- $char_code = strpos($char_set,(substr($input,$loop,1))); --snip-- even a little shorter $char_code

[PHP] Re: JavaScript conversion to PHP code...

2004-07-26 Thread Scott Fletcher
I think maybe this will do the trick.. --snip-- $char_code = strpos($char_set,(substr($input,$loop,1))); --snip-- FletchSOD Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, what is in your opinion is the best way to convert from JavaScript to PHP What I'm not

Re: [PHP] Re: JavaScript conversion to PHP code...

2004-07-26 Thread Matt M.
--snip-- $char_code = strpos($char_set,(substr($input,$loop,1))); --snip-- even a little shorter $char_code = strpos($char_set,$input{$loop}); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: JavaScript in PHP or PHP in JavaScript

2004-07-24 Thread Torsten Roehr
Robb Kerr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Let me preface this by saying that I don't know JavaScript. I've got a page that is built by a long complicated JavaScript that I was able to hack just enough to function the way I wanted. There are some lines of code -- those

[PHP] Re: javascript prob with php on ther browsers (old or new)

2004-06-28 Thread Louie Miranda
never mind, i got it solved. On Mon, 28 Jun 2004 11:13:01 +0800, Louie Miranda [EMAIL PROTECTED] wrote: Whenever i load this on my old/mac broweser like IE5, etc. The whole page just wont show up. How can i load this on php? to load it right? this loads ok on my new browser, im confused

[PHP] Re: Javascript help

2004-04-13 Thread Gerben
to open window: window.open ('test.html','winname') to close window: window.open ('','winname').close() Brent Clark [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I know this is not a Javascript mailing list, and I do apologies. I have this problem where in my php and I know

[PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
I would be very interested in a solution to this problem because I have a similar one. I stored tables on a page. examp: $table_1 = tabletrtd.$name./td/tr/table; $table_2 = tabletrtd.$message./td/tr/table; etc... and included the page and used the variables (echo $table_1;) The table

Re: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 12:44:40 AM, you wrote: F I would be very interested in a solution to this problem because I have a similar one. F I stored tables on a page. F examp: F $table_1 = tabletrtd.$name./td/tr/table; F $table_2 = tabletrtd.$message./td/tr/table; F etc... F and included

Re: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
F ?php F $table_1 = tabletrtd.$name./td/tr/table; F $table_2 = tabletrtd.$message./td/tr/table; F $name = blah blah; F if(blah blah){ F echo $table_1;} F else{ F echo $table_2;} ? You have to define variable $name before you try to use it. The only other way would be to eval

Re[2]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 1:11:52 AM, you wrote: F Doesn't $name = blah blah; define it enough? Not if it comes after $table_1 = tabletrtd.$name./td/tr/table; at this point $name does not exist. Try turning on E_ALL error reporting and it will tell you things like this. -- regards,

Re: Re[2]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Five
Tom Rogers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Friday, March 19, 2004, 1:11:52 AM, you wrote: F Doesn't $name = blah blah; define it enough? Not if it comes after $table_1 = tabletrtd.$name./td/tr/table; at this point $name does not exist. Try turning on

Re[4]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 2:26:06 AM, you wrote: F Tom Rogers [EMAIL PROTECTED] wrote in message F news:[EMAIL PROTECTED] F Cool, it works! F include (the file where the tables are stored) after the the F variables are defined, and it works. F I took 3 semesters of C and C++ programming. I

Re[4]: [PHP] Re: Javascript Mouseover Help

2004-03-18 Thread Tom Rogers
Hi, Friday, March 19, 2004, 2:57:57 PM, you wrote: JM No prob. I'm still working on a fix for my problem. I know I don't have a JM javascript error, if I copy and paste to another file it works fine. Just JM not in the php file. I'll mess with including it with the script tags, but JM it's not

[PHP] Re: javascript php

2003-07-28 Thread Thomas Seifert
On Mon, 28 Jul 2003 12:48:04 +0200 [EMAIL PROTECTED] (Roman Duriancik) wrote: I have problem with variables in javascript and php. I have code in php and in this code I insert some values from javascript.: $color = script!-- document.write(screen.colorDepth) //-- /script;

[PHP] Re: javascript php

2003-07-28 Thread Kristin Schesonka
Hi Roman, I'm not sure if I understand what you want to do - but if you try to set your PHP-Variable with JavaScript it couldn't work. JavaScript is Clientside interpreted and PHP is Serverside interpreted, that means your PHP-Code is done before the JavaScript-Code. So the Webserver reads your

[PHP] Re: Javascript and forms in PHP

2003-06-25 Thread Manuel Lemos
Hello, On 06/25/2003 09:55 AM, [EMAIL PROTECTED] wrote: Is there a limitation in PHP with Javascript and forms? I have a problem when creating a form within a table with Checkboxes and the accompanying javascript to govern the checks. I am generating the html for a table the first of 10 cells

Re: [PHP] Re: Javascript and forms in PHP

2003-06-25 Thread [EMAIL PROTECTED]
Thanks for the info... /T on 6/25/03 8:06, Manuel Lemos at [EMAIL PROTECTED] wrote: Hello, On 06/25/2003 09:55 AM, [EMAIL PROTECTED] wrote: Is there a limitation in PHP with Javascript and forms? I have a problem when creating a form within a table with Checkboxes and the accompanying

[PHP] Re: Javascript in PHP

2003-06-24 Thread Harry Wiens
i think you have to add \n after each row of java script code. $js .= }\n; mfg. harry wiens [EMAIL PROTECTED] [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] How can I get a script to work on a page that has HTML generated by PHP and a javascript with functions called by an

Re: [PHP] Re: Javascript in PHP

2003-06-24 Thread Chris Hayes
I missed the 1st post but could this be related to form name being 'crimetype' and the javascript tryin to access the form 'ctype' ? At 15:55 24-6-03, you wrote: i think you have to add \n after each row of java script code. $js .= }\n; afaik the ; handles that but indeed i would let the

Fwd: Re: [PHP] Re: Javascript in PHP

2003-06-24 Thread Chris Hayes
additionally, you named the fields WR PR and PFO while you refer to them as wr, pr and pfo. Date: Tue, 24 Jun 2003 16:04:17 +0200 To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: Chris Hayes [EMAIL PROTECTED] Subject: Re: [PHP] Re: Javascript in PHP I missed the 1st post but could this be related

Re: [PHP] Re: Javascript in PHP

2003-06-24 Thread [EMAIL PROTECTED]
Yeah, that's a problem! I corrected it and now it comes out like: html head title Independent Fact Finders Inc. /title meta name=description content=Independent Fact Finders Inc. META name=keywords content=Legal, background checks, background, check, records, paralegal, lawyer, attorney meta

[PHP] Re: Javascript cookie vs sessions

2003-02-15 Thread Zydox
I haven't seen any limit in the session size... I've got a community running that saves about 20kb of data in the session file... :) // Regards Zydox ØYstein HåLand [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Javascript cookies can't help me anymore, is

[PHP] Re: JavaScript or browser detection

2002-12-19 Thread fragmonster
Hope it helps you: http://developer.netscape.com/docs/examples/javascript/browser_type_oo.html Steve Vernon wrote: Hiya, I know it is probably out there somewhere, but I cannot find out a script to detect the browser. I have seen it, and I sorta remember how to do it, but I just can't find

[PHP] Re: JAVASCRIPT INCLUDES

2002-09-22 Thread Georgie Casey
Solved the problem. In case anyones wondering, I had the PHP script starting with a script and ending with /script when I already had that done in the HTML page. Simple Georgie Casey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In HTML, you can do this:

Re: [PHP] Re: JAVASCRIPT INCLUDES

2002-09-22 Thread David Rice
Georgie: So just for clarity, this PHP script (http://localhost/top_stuff.php?affiliate=1;) was actually a file containing javascript? and no PHP? And out of curiosity, if that is so, why append the file name with .php -David On Sunday, September 22, 2002, at 07:20 PM, Georgie Casey wrote:

[PHP] Re: Javascript ?

2002-09-05 Thread lallous
try www.ozoneasylum.com Elias Christopher J. Crane [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does anyone know of a Javascript forum like this one that I can post a question to? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Javascript ?

2002-09-04 Thread nicos
This has nothing to do with PHP, the best list of newsgroup is here : www.google.com -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Christopher J. Crane [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Does anyone know of a

Re: [PHP] Re: Javascript PHP cookies

2002-06-10 Thread Erik Price
On Sunday, June 9, 2002, at 12:56 AM, John Taylor-Johnston wrote: Absolutely. I've done it. Cookies are cookies. What I don't like is that the cookie is not saved unitl after a submit. In Javascript, I have JS code that will assign a value and save it to a cookie and then recall the

[PHP] Re: Javascript PHP cookies

2002-06-08 Thread John Taylor-Johnston
Absolutely. I've done it. Cookies are cookies. What I don't like is that the cookie is not saved unitl after a submit. In Javascript, I have JS code that will assign a value and save it to a cookie and then recall the cookie value and document.write(myvalue), over and over if I want, without

[PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Michael Virnstein
note: you should use $array[test] if test is a string and $array[test] if test is a constant. do not use $array[test] if you mean the string test. $array[test] will also work, if test is a string. Php then tries to look for a constant with name test, won't find one and evaluate test as string.

[PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Hunter Vaughn
Okay, looks like I was stupid/lazy for including the pseudo code instead of something closer to what I was using. Also, perhaps I'm being dense, but I don't understand what Michael's response has to do with this situation. Can he or someone else enlighten me? Here's a more accurate/detailed

Re: [PHP] Re: JavaScript vs. Header redirect

2002-05-22 Thread Sqlcoders.com Programming Dept
] To: [EMAIL PROTECTED] Sent: May 22 2002 11:19 AM Subject: [PHP] Re: JavaScript vs. Header redirect Okay, looks like I was stupid/lazy for including the pseudo code instead of something closer to what I was using. Also, perhaps I'm being dense, but I don't understand what Michael's response has

[PHP] Re: Javascript function

2002-05-04 Thread Hugh Bothwell
Morten Nielsen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Is it possible to call a function in a javascriptpage from a PHP page? I have a function, which I use when the user press a button. I would like to call this function just by typing the name. Is

[PHP] Re: Javascript and PHP??

2002-04-05 Thread Michael Virnstein
sure you can use javascript in your php. php is serverside and produces the page. the webserver sends then this produced page to the client. so javascript is the same as html for php. it's just some lines of text. Joe Keilholz [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL

[PHP] Re: JavaScript php question - mainly JS though so slightly OT but hep needed!!! :o)

2001-12-19 Thread Chris Lee
thats exactly how you do it. foreach( $array as $pos = $val ) echo a href='javascript:windowpopup('page.php?id=$pos')'$val /abr ; -- Chris Lee [EMAIL PROTECTED] Martin Hughes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How could I write

[PHP] Re: Javascript document variable names for complex forms

2001-09-24 Thread Gaylen Fraley
Try var myvar = opener.parent.top.document.form.var.value -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts M [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello people. First ,

[PHP] Re: JavaScript MD5()

2001-09-11 Thread Arve Bersvendsen
Nicolas Costes wrote in 00fd01c13a94$e3329b80$0100a8c0@p2333:">news:00fd01c13a94$e3329b80$0100a8c0@p2333: Hellorgh, all !!! Does anyone knows if there is a way to MD5-encode strings with JavaScript ? The algorithm is described in RFC 1321. URL:http://www.ietf.org/rfc/rfc1321.txt I use

Re: [PHP] Re: JavaScript MD5()

2001-09-11 Thread nayco
://nayco.free.fr - Original Message - From: Arve Bersvendsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 11, 2001 9:54 AM Subject: [PHP] Re: JavaScript MD5() Nicolas Costes wrote in 00fd01c13a94$e3329b80$0100a8c0@p2333:">news:00fd01c13a94$e3329b80$0100a8

[PHP] Re: JavaScript MD5()

2001-09-11 Thread Arve Bersvendsen
Arve Bersvendsen wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: The algorithm is described in RFC 1321. URL:http://www.ietf.org/rfc/rfc1321.txt BTW: I found a Javascript-implementation of MD5. URL:http://pajhome.org.uk/crypt/md5/md5src.html -- Arve «The pessimist sees

[PHP] Re: JavaScript MD5()

2001-09-11 Thread _lallous
Yes, there is Md5() for javascript ;) http://pajhome.org.uk/crypt/md5/ I tried it and it works just fine! :) Nicolas Costes [EMAIL PROTECTED] wrote in message 00fd01c13a94$e3329b80$0100a8c0@p2333">news:00fd01c13a94$e3329b80$0100a8c0@p2333... Hellorgh, all !!! Does anyone knows if there is a

[PHP] Re: javascript code beautification

2001-08-30 Thread Richard Lynch
exec(indent $source, $result, $errorcode); http://php.net/exec -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original

[PHP] Re: javascript reference (slightly ot)

2001-08-15 Thread Al
Try searching for javascript and reference on Google for online references. If you want a decent book, get something like JavaScript: The Definitive Guide by David Flanagan, published by O'Reilly. Regardless, pay attention to flags stating IE or Netscape only! :) -Al (used to use your handle

RE: [PHP] Re: javascript reference (slightly ot)

2001-08-15 Thread Matthew Loff
:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: javascript reference (slightly ot) Try searching for javascript and reference on Google for online references. If you want a decent book, get something like JavaScript: The Definitive Guide by David Flanagan, published by O'Reilly. Regardless, pay

[PHP] Re: javascript ?

2001-07-23 Thread dc
You will need to use DHTML with javascript. Try www.docjavascript.com and search for dhtml columns. I'm sure he has something about turning on and off the display of items. The basic idea is you will change the display properties from none to block and vice-versa. example function show() {

[PHP] Re: javascript ?

2001-07-23 Thread dc
the second method should be hide() Dc [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You will need to use DHTML with javascript. Try www.docjavascript.com and search for dhtml columns. I'm sure he has something about turning on and off the display of items.

[PHP] Re: javascript var on a php var...

2001-07-06 Thread George Whiffen
Romeo Manzur wrote: hi, I want to know how could I save a javascript variable on a php variable??? Thanks... It depends how the user will get to the php page: 1. Form If the user is about to submit a form and you want some Javascript variable from your page to end up as a php variable

[PHP] RE: Javascript issue

2001-04-12 Thread Tim Ward
all the javascript cares about is the page after it is sent by php. browse the page and view source will show you what the problem is. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: