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
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
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'
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
-- 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
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
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
...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
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
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
--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
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
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
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
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
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
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
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,
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
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
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
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;
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
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
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
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
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
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
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
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
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
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:
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:
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,
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
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
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
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.
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
]
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
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
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
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
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 ,
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
://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
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
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
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
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
: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
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() {
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.
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
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:
55 matches
Mail list logo