Re: [PHP] Submit code

2002-07-16 Thread Scott Fletcher

As you know, PHP can't do the work becuase it is on the server side, not hte
client side.  Meaning, when the server side is finish, all done, then it go
directly to the client side (web browser).  If you want PHP to do something
then you'll have to do something to the webpage, like a click button or
something to send it back to the server side.  So, that's where Javascript
come into play.  Javascript is the client side and it can detect things for
you and do the work for you.  Hope that help!

FletchSOD

"Steve Bradwell" <[EMAIL PROTECTED]> wrote in message
57A1618E7109D311A97D0008C7EBB3A1010C81F0@KITCHENER">news:57A1618E7109D311A97D0008C7EBB3A1010C81F0@KITCHENER...
> Well, I'm not sure if this is what your looking for but the simplest way
> might be to use JavaScript. Have the second form that you want to post
> without a submit button being clicked have an onSubmit event. So on submit
> of the first form, javascript will submit the second without the user
> clicking a button. Check this link.
>
>
http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onsubmit.html
>
> Hope this helps,
> -Steve.
>
>
> -Original Message-
> From: MindHunter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 2:33 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Submit code
>
>
> I am looking for PHP code that will submit (post) a form automaically to a
> ANOTHER php page.  I do not want to press a submit button.  I have found a
> class at PHPClasses but it is too complicated for my needs.  What is the
> simplest way of doing this?  What is the theoretical approach?
>
> The reason I need this is that I have a table output from a database after
> one submits 'n list of variables (form inputs).  I want to update a graph
in
> another Iframe automatically without clicking on another submit button.
>
> Tx
> MH
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Submit code

2002-07-16 Thread Steve Bradwell

Well, I'm not sure if this is what your looking for but the simplest way
might be to use JavaScript. Have the second form that you want to post
without a submit button being clicked have an onSubmit event. So on submit
of the first form, javascript will submit the second without the user
clicking a button. Check this link.

http://www.devguru.com/Technologies/ecmascript/quickref/evhan_onsubmit.html

Hope this helps,
-Steve.


-Original Message-
From: MindHunter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 2:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Submit code


I am looking for PHP code that will submit (post) a form automaically to a
ANOTHER php page.  I do not want to press a submit button.  I have found a
class at PHPClasses but it is too complicated for my needs.  What is the
simplest way of doing this?  What is the theoretical approach?

The reason I need this is that I have a table output from a database after
one submits 'n list of variables (form inputs).  I want to update a graph in
another Iframe automatically without clicking on another submit button.

Tx
MH



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Submit code

2002-07-15 Thread Peter Janett

The Snoopy class would do this nicely.  http://snoopy.sourceforge.net/

That may be too complicated of class as you mentioned, but it's probably the
best solution for you, and once setup, your task will be very easy to do
with
this class.  I had a similar situation where I needed to do a simple form
post, and found some very basic code, but it slowed by app down so much it
had to be replaced eventually anyway.

HTH,

Peter Janett

New Media One Web Services

New Upgrades Are Now Live!!!
Windows 2000 accounts - Cold Fusion 5.0 and Imail 7.1
Sun Solaris (UNIX) accounts - PHP 4.1.2, mod_perl/1.25,
Stronghold/3.0 (Apache/1.3.22), MySQL 3.23.43

PostgreSQL coming soon!

http://www.newmediaone.net
[EMAIL PROTECTED]
(303)828-9882

- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'MindHunter'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 12:33 AM
Subject: RE: [PHP] Submit code


> three methods that I can think of:
> 1. header("location: url");
> 2. 
> 3. Hidden form + JavaScript
>
> -Original Message-
> From: MindHunter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 4:33 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Submit code
>
>
> I am looking for PHP code that will submit (post) a form automaically to a
> ANOTHER php page.  I do not want to press a submit button.  I have found a
> class at PHPClasses but it is too complicated for my needs.  What is the
> simplest way of doing this?  What is the theoretical approach?
>
> The reason I need this is that I have a table output from a database after
> one submits 'n list of variables (form inputs).  I want to update a graph
in
> another Iframe automatically without clicking on another submit button.
>
> Tx
> MH
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Submit code

2002-07-15 Thread Martin Towell

three methods that I can think of:
1. header("location: url");
2. 
3. Hidden form + JavaScript

-Original Message-
From: MindHunter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 4:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Submit code


I am looking for PHP code that will submit (post) a form automaically to a
ANOTHER php page.  I do not want to press a submit button.  I have found a
class at PHPClasses but it is too complicated for my needs.  What is the
simplest way of doing this?  What is the theoretical approach?

The reason I need this is that I have a table output from a database after
one submits 'n list of variables (form inputs).  I want to update a graph in
another Iframe automatically without clicking on another submit button.

Tx
MH



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Submit code

2002-07-15 Thread MindHunter

I am looking for PHP code that will submit (post) a form automaically to a
ANOTHER php page.  I do not want to press a submit button.  I have found a
class at PHPClasses but it is too complicated for my needs.  What is the
simplest way of doing this?  What is the theoretical approach?

The reason I need this is that I have a table output from a database after
one submits 'n list of variables (form inputs).  I want to update a graph in
another Iframe automatically without clicking on another submit button.

Tx
MH



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php