The idea is very simple. It just needs you to know the concepts.
On the form processing page whenever u find an error just print or echo this :
err_popup();
e.g. ";
echo "err_popup();";
echo "";
}
?>
Given that the definistion of the JS err_popup()
Jay Blanchard wrote:
[snip]
I have a form and Im doing a check on submission to check whether there
are
any blank field and if there are I want to call function..
error_popup();
does this make anymore sense to you. Now I understand that you cant call
javascript from within php. wot would you recomm
Hello Garth,
Monday, November 1, 2004, 2:52:48 PM, you wrote:
GHS> I have a form and Im doing a check on submission to check whether
GHS> there are any blank field and if there are I want to call
GHS> function.. error_popup(); does this make anymore sense to you.
Then keep it all within the Java
[snip]
I have a form and Im doing a check on submission to check whether there
are
any blank field and if there are I want to call function..
error_popup();
does this make anymore sense to you. Now I understand that you cant call
javascript from within php. wot would you recommend as an alternative
Thanx for your help, I am actually a web designer!
I dont think u understand 100%
I have a form and Im doing a check on submission to check whether there are
any blank field and if there are I want to call function.. error_popup();
does this make anymore sense to you. Now I understand that you ca
[snip]
Ok so what does this mean I should write..I don't understand what you
mean
by Server Side/Client Side.
[/snip]
Server side means that the server handles the processing. Client side
means that the interface device (in this case, a browser) handles the
processing. PHP is server side. JavaScr
Garth Hapgood - Strickland wrote:
by saying ?
echo error_popup();
or
print error_popup;
As someone mentioned, you cannot call a javascript function from within
PHP. What is meant by client side/server side is this: PHP is processed
on the server before sending any content to the browser; that's
> You can't call JavaScript functions from within PHP. You can output the
> JavaScript function to the browser.
>
> PHP == Server Side
> JavaScript == Client Side
Ok so what does this mean I should write..I don't understand what you mean
by Server Side/Client Side.
--
PHP General Mailing List
by saying ?
echo error_popup();
or
print error_popup;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Garth Hapgood - Strickland wrote:
I want to call a javascript function:
function error_popup() { newwin =
window.open("error_popup.php","sss","height=470,width=450") }
from within my php code.
How do I go about called this function?
Garth
You can't call JavaScript functions from within PHP. You
[snip]
I want to call a javascript function:
function error_popup() { newwin =
window.open("error_popup.php","sss","height=470,width=450") }
from within my php code.
How do I go about called this function?
[/snip]
You have to echo or print out the javascript using PHP
--
PHP General Mailing Li
I want to call a javascript function:
function error_popup() { newwin =
window.open("error_popup.php","sss","height=470,width=450") }
from within my php code.
How do I go about called this function?
Garth
02 10:51 AM
To: Kevin Stone; [EMAIL PROTECTED]
Subject: Re: [PHP] Calling Javascript-function from php-script ...
I think the point here is that it be made clear to those who might get
confused that the javascript (unless it's a server-side script) is
running in
a browser and as such there is no way
; information gathered by the PHP script.
> -Kevin
>
> -Original Message-
> From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 4:27 PM
> To: Kevin Stone
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Calling Javascript-function from php-script ..
atabase
information gathered by the PHP script.
-Kevin
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 4:27 PM
To: Kevin Stone
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Calling Javascript-function from php-script ...
»Kevin Stone« sagte
»Kevin Stone« sagte am 2002-03-19 um 14:11:42 -0700 :
> Not entirely true. Javascript is directly linked to HTML and HTML is
> directly linked to PHP so you can have PHP talk to Javascript through
> HTML.
I still don't agree. You can of course create JavaScripts dynamically
in PHP. However, PH
uesday, March 19, 2002 12:54 PM
To: Marcel Besancon
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Calling Javascript-function from php-script ...
»Marcel Besancon« sagte am 2002-03-19 um 13:04:38 +0100 :
> Hi everybody,
>
> is there someone who can tell me how to call a javascript-function
by a
»Marcel Besancon« sagte am 2002-03-19 um 13:19:49 +0100 :
> meant ist the following. I have a script with a form. By submitting this
> form and checking out some values php should call a javascript-function
> (such as an alert). You see the php-script shall call the
Bad idea. On the one hand, PH
»Marcel Besancon« sagte am 2002-03-19 um 13:04:38 +0100 :
> Hi everybody,
>
> is there someone who can tell me how to call a javascript-function by a
> php-script.
PHP creates HTML pages (mostly) which will be displayed by a client
and/or receives send pages/requests from a client.
There's
PHP cannot call a javascript function.
but PHP can examine the incoming variables
and then output Javascript to the browser
to do the appropriate work.
for example, calling $text.php?this=5
pops up an alert saying "this=5"
test.php
\n".
"alert('this='+". $this .");\n".
""
?>
Marcel Besa
Then you need to do it like this:
alert("DOH!");
But you can not make PHP call javascript functions directly.
Niklas
-Original Message-
From: Marcel Besancon [mailto:[EMAIL PROTECTED]]
Sent: 19. maaliskuuta 2002 14:20
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Calling
Hi,
i know that one is server-side and the other is client-side. But what i
meant ist the following. I have a script with a form. By submitting this
form and checking out some values php should call a javascript-function
(such as an alert). You see the php-script shall call the
javascript-fun
Short answer: no.
Long answer: have the PHP script output javascript code
to the browser.
PHP = server-side
Javascript = client-side
Marcel Besancon wrote:
> Hi everybody,
>
> is there someone who can tell me how to call a javascript-function by a
> php-script.
>
> Thanks for each answer
AFAK it's not possible since PHP is server-side and I guess your
JavaScript is client-side.
Niklas
-Original Message-
From: Marcel Besancon [mailto:[EMAIL PROTECTED]]
Sent: 19. maaliskuuta 2002 14:05
To: [EMAIL PROTECTED]
Subject: [PHP] Calling Javascript-function from php-s
Hi everybody,
is there someone who can tell me how to call a javascript-function by a
php-script.
Thanks for each answer
Marcel
--
registered Fli4l-User #0388
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>onclick="set_category()">
>
>
>
I understand Netscape is a real pain in the a**... but that should work...
maybe it (Netscape)'s being picky about syntax... trye being
perfectionist... like:
_
. Christian Dechery
. . Gaita-L Owner / Web Developer
. . http:
Hi,
I have a form which contains an:
tags
but I don't think a form will like this.
Has anyone a solution?
Here is my code
#
imagesubmit.htm
function set_category() {
alert("category set");
}
alert(\"form submitted\");";
}
else
{
echo "alert(\"not submitte
PHP has some encryption mechanisms in it - but by that time you've
sent the data to the server. The other respondents are correct
though - you should be using an SSL connection to encrypt the data
between the user and your server.
On a site that I do I use SSL to keep the data secure between
30, 2001 1:40 PM
Aan: [EMAIL PROTECTED]
Onderwerp: [PHP] calling javascript functions inside PHP
I use a PHP self-validating form for taking orders off my site. (on submit
it calls itself and if there are no errors a send variable is set and it
emails me the information, etc - standard stuff).
I
I use a PHP self-validating form for taking orders off my site. (on submit
it calls itself and if there are no errors a send variable is set and it
emails me the information, etc - standard stuff).
I'd like to start taking CC orders and would like to encode the information
using javascript
http:/
30 matches
Mail list logo