Re: [PHP] Submit Using An Image Form Processing

2011-06-19 Thread Shawn McKenzie
On 06/19/2011 07:26 AM, tedd wrote:
> At 6:34 PM -0500 6/18/11, Shawn McKenzie wrote:
>>
>> Get method is for retrieval only.  It is not for anything that has a
>> consequence (insert, update, delete, send email, etc.).  Use only post
>> for those.
>>
>> -- 
>> Thanks!
>> -Shawn
> 
> 
> Why?
> 
> Cheers,
> 
> tedd
> 

The convention has been established that the GET and HEAD methods SHOULD
NOT have the significance of taking an action other than retrieval.
These methods ought to be considered "safe". This allows user agents to
represent other methods, such as POST, PUT and DELETE, in a special way,
so that the user is made aware of the fact that a possibly unsafe action
is being requested.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

-- 
Thanks!
-Shawn
http://www.spidean.com

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



Re: [PHP] Submit Using An Image Form Processing

2011-06-19 Thread Jason Pruim
On Jun 18, 2011, at 7:34 PM, Shawn McKenzie wrote:

> On 06/18/2011 11:06 AM, Jason Pruim wrote:
>> 
>> On Jun 18, 2011, at 11:54 AM, "Ron Piggott"  
>> wrote:
>> 
>>> >> SRC="http://www.theverseoftheday.info/store-images/trash_can.png"; 
>>> WIDTH="20"  HEIGHT="20" style="float: right;boarder: 0;" alt="Remove 
>>> Product From Shopping Cart" name="remove_product" value="1" />
>> 
>> I would wrap the image in a link like so:
>> 
>> 
>> And then have a get look for that variable:
>> 
>> $id=$_get[id];
>> 
>> If (isset($id)) {
>> 
>> //delete code here
>> }
>> 
>> Check all that before you run it I'm writing from my smart phone and 
>> it's all untested. Hopefully it gives you a start though. 
>> 
>> Jason Pruim 
> 
> Get method is for retrieval only.  It is not for anything that has a
> consequence (insert, update, delete, send email, etc.).  Use only post
> for those.

I've actually used $_GET in the way I described because then it doesn't require 
submitting a form to be able to delete something from a list.

with $_POST you would have to submit the form, so you would need to build an 
array of check boxes to store what ones you want to delete, and then go through 
and process the array to remove all the proper items.

But with the $_GET you can process it one at a time. I had a system up and 
working for maintaining a address database for quite awhile and it worked great 
for me.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Submit Using An Image Form Processing

2011-06-19 Thread tedd

At 11:54 AM -0400 6/18/11, Ron Piggott wrote:
I am writing a shopping cart using the PayPal API.  Shopping cart 
works.  Just adding additional functionality. 

From the shopping cart contents I am trying to make it so the user 
may click on a picture of a trash can to delete the item.  I wrote 
the following line of code:


SRC="http://www.theverseoftheday.info/store-images/trash_can.png"; 
WIDTH="20"  HEIGHT="20" style="float: right;boarder: 0;" alt="Remove 
Product From Shopping Cart" name="remove_product" value="1" />


But when I have do:

echo $remove_product;

I am not getting anything.  Is there a correct way of passing a 
variable through an image?  The value in this above example is the 
auto_increment value of the product.  From this I could remove the 
item from the shopping cart. 


OR

Is there a better way to pass a variable through a graphic?  I am 
hoping for the shopping cart contents to be just 1 form where users 
will have several options (change quantities, delete specific 
items).  I can't use a hidden field. 


Thank you for your help.

Ron


Ron:

You don't need to pass a value. What you need is simply a trigger to 
do something. As such, you can use lot's of things.


In this case, a button should work.

http://www.htmlcodetutorial.com/forms/_BUTTON.html

However, I would take all the styling (including dimensions) out of 
it and place those in a css sheet.


Also, what's wrong with a hidden field?

Cheers,

tedd

--
---
http://sperling.com/

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



Re: [PHP] Submit Using An Image Form Processing

2011-06-19 Thread Ashley Sheridan


tedd  wrote:

>At 6:34 PM -0500 6/18/11, Shawn McKenzie wrote:
>>
>>Get method is for retrieval only.  It is not for anything that has a
>>consequence (insert, update, delete, send email, etc.).  Use only post
>>for those.
>>
>>--
>>Thanks!
>>-Shawn
>
>
>Why?
>
>Cheers,
>
>tedd
>
>--
>---
>http://sperling.com/
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

That's just the http spec. It's because browsers and servers know how to 
correctly handle the different types of connections.

Some browsers make multiple connections for get, which is one of the main 
reasons for people having problems with multiple hits on a page being 
registered when only one was expected.

Ashley Sheridan
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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



Re: [PHP] Submit Using An Image Form Processing

2011-06-19 Thread tedd

At 6:34 PM -0500 6/18/11, Shawn McKenzie wrote:


Get method is for retrieval only.  It is not for anything that has a
consequence (insert, update, delete, send email, etc.).  Use only post
for those.

--
Thanks!
-Shawn



Why?

Cheers,

tedd

--
---
http://sperling.com/

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



Re: [PHP] Submit Using An Image Form Processing

2011-06-18 Thread Shawn McKenzie
On 06/18/2011 11:06 AM, Jason Pruim wrote:
> 
> On Jun 18, 2011, at 11:54 AM, "Ron Piggott"  
> wrote:
> 
>> > SRC="http://www.theverseoftheday.info/store-images/trash_can.png"; WIDTH="20" 
>>  HEIGHT="20" style="float: right;boarder: 0;" alt="Remove Product From 
>> Shopping Cart" name="remove_product" value="1" />
> 
> I would wrap the image in a link like so:
> 
> 
> And then have a get look for that variable:
> 
> $id=$_get[id];
> 
> If (isset($id)) {
> 
> //delete code here
> }
> 
> Check all that before you run it I'm writing from my smart phone and it's 
> all untested. Hopefully it gives you a start though. 
> 
> Jason Pruim 

Get method is for retrieval only.  It is not for anything that has a
consequence (insert, update, delete, send email, etc.).  Use only post
for those.

-- 
Thanks!
-Shawn
http://www.spidean.com

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



Re: [PHP] Submit Using An Image Form Processing

2011-06-18 Thread Jason Pruim

On Jun 18, 2011, at 11:54 AM, "Ron Piggott"  
wrote:

>  SRC="http://www.theverseoftheday.info/store-images/trash_can.png"; WIDTH="20"  
> HEIGHT="20" style="float: right;boarder: 0;" alt="Remove Product From 
> Shopping Cart" name="remove_product" value="1" />

I would wrap the image in a link like so:


And then have a get look for that variable:

$id=$_get[id];

If (isset($id)) {

//delete code here
}

Check all that before you run it I'm writing from my smart phone and it's 
all untested. Hopefully it gives you a start though. 

Jason Pruim 

RE: [PHP] Submit Form Values To Parent

2005-12-02 Thread Jay Blanchard
[snip]
> http://www.assertia.com/iframe.html
>
> and then click on 'Click Here'. I am trying to display the form results in
> the parent window, but I am having no luck!
> [/snip]
>
> Actually it is working properly. You have no POST method in your form call
>
> form.html:
>  <---WHAT IS THE METHOD?
>  
>   onclick="document.myform.submit();">Click here
> 

Thanks for your reply, I'm not sure what is happening because I have added
the method yet it still isn't working...
[/snip]

It is working. The POST array contains the text=>test you set up for it. If
you think that it is not the proper behavior, what exactly is it that you
expect?

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



Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Shaun

"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> [snip]
> I have made an example of this now. If you click on this link:
>
> http://www.assertia.com/iframe.html
>
> and then click on 'Click Here'. I am trying to display the form results in
> the parent window, but I am having no luck!
> [/snip]
>
> Actually it is working properly. You have no POST method in your form call
>
> form.html:
>  <---WHAT IS THE METHOD?
>  
>   onclick="document.myform.submit();">Click here
> 

Hi Jay,

Thanks for your reply, I'm not sure what is happening because I have added
the method yet it still isn't working...

Any ideas?



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



RE: [PHP] Submit Form Values To Parent

2005-12-02 Thread Jay Blanchard
[snip]
I have made an example of this now. If you click on this link:

http://www.assertia.com/iframe.html

and then click on 'Click Here'. I am trying to display the form results in
the parent window, but I am having no luck!
[/snip]

Actually it is working properly. You have no POST method in your form call

form.html:
 <---WHAT IS THE METHOD?
  
  Click here


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



Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Shaun
Hi all,

I have made an example of this now. If you click on this link:

http://www.assertia.com/iframe.html

and then click on 'Click Here'. I am trying to display the form results in
the parent window, but I am having no luck!

Here is my code:

iframe.html:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document






form.html:

  
  Click here


result.php:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document






Any ideas?

"Terence" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
>
>
> Shaun wrote:
>> Hi,
>>
>> How can I get the form values submitted from an iframe where the target 
>> is the parent window?
>
> Use Javascript. Check out irt.org ->  Javascript
> They have lots of great examples. 

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



Re: [PHP] Submit Form Values To Parent

2005-12-02 Thread Terence



Shaun wrote:

Hi,

How can I get the form values submitted from an iframe where the target is 
the parent window? 



Use Javascript. Check out irt.org ->  Javascript
They have lots of great examples.

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



Re: [PHP] Submit/Validate triggering problem.

2005-10-22 Thread Richard Lynch
On Fri, October 21, 2005 10:51 am, Uros Dukanac wrote:
> I can make "workaround" by checking the value of $Filter (is it "A" or
> "B") to
> determine which button sent a request (see "Workaround code" after
> "Original
> code"), but it looks "dirty" to me, and I'm wondering why to do that

It's pretty standard to check which button was pressed by what values
are sent from the browser.

That's just how it's done.

>   if ($AForm->validate() && Filter == "A")

I got no clue what all the QuickForm and validate() stuff is doing,
but you may not really care about validate() here unless $Filter ==
'B'...

So I'd maybe switch the order of the tests and put $Filter first.

Or maybe you always want validate() for A to run, even when they don't
click on A?

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] Submit name change

2005-05-02 Thread Jochem Maas
Anasta wrote:
I need this to change the value of the button 'sit in'  to the name of a
user --it doesnt work so anyone got any ideas or is what i am looking to do
impossible.
have you tried the [EMAIL PROTECTED] list? ;-)
(with kudos to John Nichel for the original 'psychic-db' comment which still
makes me laugh when I think about it)
Either the button name can show the username or a text field can change from
blank to show the username when clicked.

   
the "JavaScript" is a give away that this is not a php question, go to a 
javascript
list (or maybe first try google) and ask them, don't forget to include
the definition of showname(), without it nobody can tell you why _it_ doesn't 
work.
btw:
1. from what I can tell what you want to do is far from impossible.
2. on the PHP side of things, you have to make sure that $uname does not
contain any unescaped single-quotes before echoing it (if you want to be sure
that you javascript will not throw an error due to a syntax error)
 return true;">


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


Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-28 Thread Brent Clements
Stupid me completely forgot about the socket functions in PHP. Again, that's
what I get for having too little coffee last night.

Thanks for the help everyone.

- Original Message - 
From: "Chris Shiflett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 27, 2004 11:06 PM
Subject: Re: [PHP] submit to a remote form without the use of curl?? Is it
possible?


> --- [EMAIL PROTECTED] wrote:
> > Is it possible with php to submit to a remote form without the
> > use of curl?
>
> You can use fsockopen:
>
> http://shiflett.org/hacks/php/http_post
>
> If your version of PHP supports streams, you can use streams:
>
> http://shiflett.org/hacks/php/streams_post
>
> Hope that helps.
>
> Chris
>
> =
> Chris Shiflett - http://shiflett.org/
>
> PHP Security - O'Reilly HTTP Developer's Handbook - Sams
> Coming December 2004http://httphandbook.org/

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



Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-27 Thread Chris Shiflett
--- [EMAIL PROTECTED] wrote:
> Is it possible with php to submit to a remote form without the
> use of curl?

You can use fsockopen:

http://shiflett.org/hacks/php/http_post

If your version of PHP supports streams, you can use streams:

http://shiflett.org/hacks/php/streams_post

Hope that helps.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly HTTP Developer's Handbook - Sams
Coming December 2004http://httphandbook.org/

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



Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-27 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]:
> 
> 
> Is it possible with php to submit to a remote form without the use of curl?

I'm assuming you want to POST a form verses a GET, since you can
easily do a GET form submission like:

  $fp = fopen('http://domain.com/?get=var', 'r');

in PHP5 you can accomplish this using the new zcontext parameter:

$postdata = 'foo=bar';
$contextConf = array(
  'http' => array (
'method' => 'POST',
'header' => "Content-Length: " . strlen($postdata) . "\r\n",
'content' => $postdata
  ),
);

$zcontext = stream_context_create($contextConf);
$fp = fopen('http://domain.com/', 'r', $zcontext);


Curt
-- 
The above comments may offend you. flame at will.

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



Re: [PHP] submit to a remote form without the use of curl?? Is it possible?

2004-09-27 Thread raditha dissanayake
[EMAIL PROTECTED] wrote:
Is it possible with php to submit to a remote form without the use of curl?
I am developing an application on a hosting server that does not have curl
available and I need to submit some values to a remote form.
Anybody ever do something like this without the use of curl?
 

It's quite possible you can use fsockopen() to do this manually (RFC 
2616) or you can make use of any of the classes available for free.
in some platforms you might find the POST binary which makes things a 
lot easier.


Thanks,
Brent

This message was sent using IMP, the Internet Messaging Program.
 


--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Submit button as image

2004-05-12 Thread Curt Zirzow
* Thus wrote Sam ([EMAIL PROTECTED]):
> 
> What do you do with this?
> Submit.x=22&Submit.y=13
> 
> if($_GET['Submit.x'] > 0) ???

$_GET['Submit_x']; 

php converts .x to _x to be compatible accross browser versions.

> 
> Is there some smarter way of dealing with an image as a submit button?
> 
> input name="Submit" type="image" value="doesNOTseemTOmatter"

mozilla/firefox is the only browser that I know of that will pass
the value.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

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



RE: [PHP] Submit button as image

2004-05-12 Thread Chris W. Parker
Sam 
on Wednesday, May 12, 2004 10:10 AM said:

> What do you do with this?

nothing. i usually don't give my image buttons a name value so that
never shows up. what it's meant for is server side image maps. the
browser is telling the server where on the image the user clicked. then
you as the programmer decide where the user be taken depending on where
they clicked.

> Is there some smarter way of dealing with an image as a submit button?
> 
> input name="Submit" type="image" value="doesNOTseemTOmatter"

maybe the following will suffice?




hth,
chris.

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



[Fwd: Re: [PHP] Submit Button Refresh Problem?]

2004-01-05 Thread Asegu
oops, should have double checked the 'to'. Sorry.

 Original Message 
Subject: Re: [PHP] Submit Button Refresh Problem?
From:Andrew Séguin <[EMAIL PROTECTED]>
Date:Mon, January 5, 2004 12:26
To:___
--

>...
> This appears to be a client-side scripting and/or markup question. PHP
is server-side and unrelated, so you should direct your question to
another list (suggestions, anyone?).
>...

Evolt.org 'thelist' is my recommendation (and subscription) for general
web development.

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



Re: [PHP] Submit Button Refresh Problem?

2004-01-05 Thread Chris Shiflett
--- wknit <[EMAIL PROTECTED]> wrote:
> I have a php file that contains all the functions that I run on the
> page that is displayed, self-contained.
> 
> The main function is 
> 
> I am invoking that function with a Submit button OnClick event.

[snip]

> How do I keep the page from refreshing on load and apparently self
> clicking the form button, and how do I keep the page from ...

This appears to be a client-side scripting and/or markup question. PHP is
server-side and unrelated, so you should direct your question to another
list (suggestions, anyone?).

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

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



RE: [PHP] Submit Button Refresh Problem?

2004-01-05 Thread Larry Brown
we need more code than ...

By the looks of that alone, it appears that you have that inserted into the
html somewhere around the submit button.  If that is the case, the function
will run every time you load the page.  You have to set a trigger to
determine whether it should run or not.  For instance, the form in which the
submit button is in can have a variable such as  so that when you hit submit, that value is sent to
the target of the form, (which I take it is this same page).  The code
around the function in php could be...

if($executeRand == 1){ makeArrays(); }

You'll need a second form around your other submit along with a variable for
it to send etc.

Hope that helps

Larry

-Original Message-
From: wknit [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 8:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Submit Button Refresh Problem?


I have a php file that contains all the functions that I run on the page
that is displayed, self-contained.

The main function is 

I am invoking that function with a Submit button OnClick event.

Whenever I click the button, the page refreshes and the function runs just
fine displaying a dynamically generated random sequence of numbers.

The problem is the page refresh itself.

When the page first loads the function runs and it shouldn't, the display
should be blank until the button is clicked.

This is a problem because I have another button that will be coded to write
the data generated to a database, at present that function is empty, however
when I click that button the page refreshes again and the number data
changes.

How do I keep the page from refreshing on load and apparently self clicking
the form button, and how do I keep the page from refreshing and running the
'makearrays' function when I click the 'writedata' function?  When the
'writedata' function is invoked from a button click only that function
should be called and the data from the previous page should be returned to
the page again (same).. i.e. the random number sequence does not change.

Thanks!

--
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 button

2003-09-30 Thread - Edwin -
Hi,

"Nitin" <[EMAIL PROTECTED]> wrote:

> Never mind, but could you state the reason?

Just guessing here...

...[snip]...

> 
> > --- Nitin <[EMAIL PROTECTED]> wrote:
> > > 
> > 
> > This is a great example of what not to do.

...because it relies on Javascript (so it's unreliable because of some Javascript 
issues)...

> > Use http://bb.yahoo.co.jp/

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



Re: [PHP] Submit button

2003-09-29 Thread Nitin
Never mind, but could you state the reason?

Nitin


- Original Message - 
From: "Chris Shiflett" <[EMAIL PROTECTED]>
To: "Nitin" <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]>
Cc: "PHP-General" <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 3:34 AM
Subject: Re: [PHP] Submit button


> --- Nitin <[EMAIL PROTECTED]> wrote:
> > 
> 
> This is a great example of what not to do.
> 
> Use  
> Chris
> 

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



Re: [PHP] Submit button

2003-09-28 Thread Chris Shiflett
--- Nitin <[EMAIL PROTECTED]> wrote:
> 

This is a great example of what not to do.

Use http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Submit button

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 01:20:32PM +0200, Karina S wrote:
: 
: I have changed the code, but it doesn't work.
: 
:  if (!(isset($_Post['SubmitForm_x'])))
:   {
: ...
: .
:  
: }
: else
: {
: .
: }

1. The superglobal array is $_POST (all caps), not $_Post.

2. Make sure the URL path to your image file is correct, i.e. change
"image.gif" to the relative or absolute URL.

3. The "alt" attribute is technically unneeded.

4. When in doubt:

print_r($_POST);

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



Re: [PHP] Submit button

2003-09-28 Thread Nitin
You can always use:



Try it and enjoy
Nitin

Re: [PHP] Submit button

2003-09-28 Thread Karina S
I have changed the code, but it doesn't work.

 if (!(isset($_Post['SubmitForm_x'])))
  {
...
.
 
}
else
{
.
}


"Eugene Lee" <[EMAIL PROTECTED]> az alábbiakat írta a következo üzenetben
news:[EMAIL PROTECTED]
> On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote:
> :
> : I want to use an image as submit button on my form. Now I use the
following
> : code with button:
> :
> :   if (!(isset($_Post['SubmitForm'])))
> :   {
> : ...
> : .
> :  
> : }
> : else
> : {
> : .
> : }
> :
> : Is it possible to change the Submit button with an image?
>
> Yep.  It's a feature of HTML.
>
> 
>
> Note that the x,y coordinates of where you clicked on the image gets
> submitted as "SubmitForm.x" and "SubmitForm.y", so watch out for the
> existence of these variables.

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



Re: [PHP] Submit button

2003-09-28 Thread Eugene Lee
On Sun, Sep 28, 2003 at 12:49:27PM +0200, Karina S wrote:
: 
: I want to use an image as submit button on my form. Now I use the following
: code with button:
: 
:   if (!(isset($_Post['SubmitForm'])))
:   {
: ...
: .
:  
: }
: else
: {
: .
: }
: 
: Is it possible to change the Submit button with an image?

Yep.  It's a feature of HTML.



Note that the x,y coordinates of where you clicked on the image gets
submitted as "SubmitForm.x" and "SubmitForm.y", so watch out for the
existence of these variables.

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



Re: [PHP] Submit Image Button

2003-04-04 Thread Marek Kilimajer
Even if it would be fixed right now, you cannot count on it for several 
years ;-)

Daevid Vincent wrote:

Anyone know if this annoying behaviour will ever be 'fixed' in future HTML
specs? I can't believe what a glaring oversight this is that the 'value'
doesn't get GET/POSTED like with a normal 'submit' button... WTF were they
thinking?
 



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


RE: [PHP] Submit Image Button

2003-04-03 Thread Daevid Vincent
Anyone know if this annoying behaviour will ever be 'fixed' in future HTML
specs? I can't believe what a glaring oversight this is that the 'value'
doesn't get GET/POSTED like with a normal 'submit' button... WTF were they
thinking?


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



Re: [PHP] Submit Image Button

2003-04-03 Thread Maciek Ruckgaber Bielecki
have a look on  tag in w3c.org mate

On Wed, Apr 02, 2003 at 09:27:01PM -0500, Thomas wrote:
> I have a problem with my php.
> 
> I have a form and in that form there is an image submit button.  When I
> click on it, it won't tell me if the submit button is clicked.
> It works fine with a normal one.
> 
> sample:
> 
>   if (!$submit) {
> ?>
> 
> 
> 
>  border="0" name="submit" value="Login" width="55" height="19" alt="Submit">
> 
> 
>  } else {
> echo "you clicked";
> }
> ?>
> 
> If I use   This works finedo I need to do
> something else with the code?
> Help is very appreciated.
> 
> Cheers.
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 

Maciek Ruckgaber Bielecki
Desarrollo
http://www.colegiosenlinea.com

"Perfection of means and confusion of ends seem to characterize our age."
--Albert Einstein--

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



RE: [PHP] Submit Image Button

2003-04-03 Thread Ford, Mike [LSS]
> -Original Message-
> From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED]
> Sent: 03 April 2003 15:28
> 
> On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote 
> about "RE: [PHP]
> Submit Image Button" what the universal translator turned into this:
> 
> >Well you can ignore it if you don't need the X/Y cord... But 
> you can use
> >it to make sure the button was clicked:
> >
> >If(!$_GET['sub_x'] || !_GET['sub_y']) {
> > // display form
> >} else {
> > // it was submitted
> 
> If you can't click the button without getting both a X and Y 
> coordinat,
> wouldn't it make more sense to use AND instead of OR in the 
> above logex??

Since clicking the button gives you both X and Y co-ordinates, and not clicking it 
gives you neither, why even bother checking both?  Just testing one or the other would 
be quite sufficient.  (And, if you insist on testing both, it makes no difference 
whether you use and or or -- just so long as you don't use xor!)

Cheers!

Mike

-
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730  Fax:  +44 113 283 3211 

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



Re: [PHP] Submit Image Button

2003-04-03 Thread Thomas
It works either way apparently...plus, I need the $POST not $_GET.  but it
works aswell.


"-{ Rene Brehmer }-" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote about "RE: [PHP]
> Submit Image Button" what the universal translator turned into this:
>
> >Well you can ignore it if you don't need the X/Y cord... But you can use
> >it to make sure the button was clicked:
> >
> >If(!$_GET['sub_x'] || !_GET['sub_y']) {
> > // display form
> >} else {
> > // it was submitted
>
> If you can't click the button without getting both a X and Y coordinat,
> wouldn't it make more sense to use AND instead of OR in the above logex??
>
> So it would be:
>
> If(!$_GET['sub_x'] && !$_GET['sub_y']) {
> // display form
> } else {
> // it was submitted
>
> Plus you're missing a $ in the second $_GET...
>
> Rene
>
> --
> Rene Brehmer
>
> This message was written on 100% recycled spam.
>
> Come see! My brand new site is now online!
> http://www.metalbunny.net



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



Re: [PHP] Submit Image Button

2003-04-03 Thread -{ Rene Brehmer }-
On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote about "RE: [PHP]
Submit Image Button" what the universal translator turned into this:

>Well you can ignore it if you don't need the X/Y cord... But you can use
>it to make sure the button was clicked:
>
>If(!$_GET['sub_x'] || !_GET['sub_y']) {
>   // display form
>} else {
>   // it was submitted

If you can't click the button without getting both a X and Y coordinat,
wouldn't it make more sense to use AND instead of OR in the above logex??

So it would be:

If(!$_GET['sub_x'] && !$_GET['sub_y']) {
// display form
} else {
// it was submitted

Plus you're missing a $ in the second $_GET...

Rene

-- 
Rene Brehmer

This message was written on 100% recycled spam.

Come see! My brand new site is now online!
http://www.metalbunny.net

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



Re: [PHP] Submit Image Button

2003-04-02 Thread Thomas
AwesomeThank you so much.

Cheers.

Thomas


"John Coggeshall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Well you can ignore it if you don't need the X/Y cord... But you can use
> it to make sure the button was clicked:
>
> If(!$_GET['sub_x'] || !_GET['sub_y']) {
> // display form
> } else {
> // it was submitted
>
> -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
> John Coggeshall
> john at coggeshall dot org  http://www.coggeshall.org/
> -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
>
>
> >-Original Message-
> >From: Thomas [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, April 02, 2003 9:39 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: [PHP] Submit Image Button
> >
> >
> >ok, sorry I'm a newb...what do I do with that info?  I saw
> >that page, but it makes no sense to me
> >
> >Thomas
> >
> >
> >"John Coggeshall" <[EMAIL PROTECTED]> wrote in message
> >news:[EMAIL PROTECTED]
> >>
> >> http://www.php.net/manual/en/language.variables.external.php
> >>
> >> 
> >>
> >> This creates variables $_GET['sub_x'] and $_GET['sub_y'] containing
> >> the X/Y cordinate where the button was clicked (assuming it was GET
> >> method form submission)
> >>
> >> John
> >>
> >>
> >-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
> >> John Coggeshall
> >> john at coggeshall dot org
> >http://www.coggeshall.org/
> >>
> >-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
> >>
> >>
> >> >-Original Message-
> >> >From: Thomas [mailto:[EMAIL PROTECTED]
> >> >Sent: Wednesday, April 02, 2003 9:27 PM
> >> >To: [EMAIL PROTECTED]
> >> >Subject: [PHP] Submit Image Button
> >> >
> >> >
> >> >I have a problem with my php.
> >> >
> >> >I have a form and in that form there is an image submit
> >button.  When
> >> >I click on it, it won't tell me if the submit button is clicked. It
> >> >works fine with a normal one.
> >> >
> >> >sample:
> >> >
> >> > >> > if (!$submit) {
> >> >?>
> >> >
> >> >
> >> >
> >> > >> >src="../News/themes/xFClan/button_submit.gif"
> >> >border="0" name="submit" value="Login" width="55" height="19"
> >> >alt="Submit">
> >> >
> >> >
> >> > >> >} else {
> >> >echo "you clicked";
> >> >}
> >> >?>
> >> >
> >> >If I use   This works finedo
> >I need to
> >> >do something else with the code? Help is very appreciated.
> >> >
> >> >Cheers.
> >> >
> >> >
> >> >
> >> >
> >> >--
> >> >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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Submit Image Button

2003-04-02 Thread John Coggeshall

Well you can ignore it if you don't need the X/Y cord... But you can use
it to make sure the button was clicked:

If(!$_GET['sub_x'] || !_GET['sub_y']) {
// display form
} else {
// it was submitted

-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall dot org  http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-


>-Original Message-
>From: Thomas [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, April 02, 2003 9:39 PM
>To: [EMAIL PROTECTED]
>Subject: Re: [PHP] Submit Image Button
>
>
>ok, sorry I'm a newb...what do I do with that info?  I saw 
>that page, but it makes no sense to me
>
>Thomas
>
>
>"John Coggeshall" <[EMAIL PROTECTED]> wrote in message 
>news:[EMAIL PROTECTED]
>>
>> http://www.php.net/manual/en/language.variables.external.php
>>
>> 
>>
>> This creates variables $_GET['sub_x'] and $_GET['sub_y'] containing 
>> the X/Y cordinate where the button was clicked (assuming it was GET 
>> method form submission)
>>
>> John
>>
>> 
>-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
>> John Coggeshall
>> john at coggeshall dot org  
>http://www.coggeshall.org/
>> 
>-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
>>
>>
>> >-Original Message-
>> >From: Thomas [mailto:[EMAIL PROTECTED]
>> >Sent: Wednesday, April 02, 2003 9:27 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: [PHP] Submit Image Button
>> >
>> >
>> >I have a problem with my php.
>> >
>> >I have a form and in that form there is an image submit 
>button.  When 
>> >I click on it, it won't tell me if the submit button is clicked. It 
>> >works fine with a normal one.
>> >
>> >sample:
>> >
>> >> > if (!$submit) {
>> >?>
>> >
>> >
>> >
>> >> >src="../News/themes/xFClan/button_submit.gif"
>> >border="0" name="submit" value="Login" width="55" height="19" 
>> >alt="Submit">
>> >
>> >
>> >> >} else {
>> >echo "you clicked";
>> >}
>> >?>
>> >
>> >If I use   This works finedo 
>I need to 
>> >do something else with the code? Help is very appreciated.
>> >
>> >Cheers.
>> >
>> >
>> >
>> >
>> >--
>> >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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Submit Image Button

2003-04-02 Thread Thomas
ok, sorry I'm a newb...what do I do with that info?  I saw that page, but it
makes no sense to me

Thomas


"John Coggeshall" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> http://www.php.net/manual/en/language.variables.external.php
>
> 
>
> This creates variables $_GET['sub_x'] and $_GET['sub_y'] containing the
> X/Y cordinate where the button was clicked (assuming it was GET method
> form submission)
>
> John
>
> -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
> John Coggeshall
> john at coggeshall dot org  http://www.coggeshall.org/
> -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
>
>
> >-Original Message-
> >From: Thomas [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, April 02, 2003 9:27 PM
> >To: [EMAIL PROTECTED]
> >Subject: [PHP] Submit Image Button
> >
> >
> >I have a problem with my php.
> >
> >I have a form and in that form there is an image submit
> >button.  When I click on it, it won't tell me if the submit
> >button is clicked. It works fine with a normal one.
> >
> >sample:
> >
> > > if (!$submit) {
> >?>
> >
> >
> >
> > >src="../News/themes/xFClan/button_submit.gif"
> >border="0" name="submit" value="Login" width="55" height="19"
> >alt="Submit">
> >
> >
> > >} else {
> >echo "you clicked";
> >}
> >?>
> >
> >If I use   This works finedo I
> >need to do something else with the code? Help is very appreciated.
> >
> >Cheers.
> >
> >
> >
> >
> >--
> >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 Image Button

2003-04-02 Thread John Coggeshall

http://www.php.net/manual/en/language.variables.external.php



This creates variables $_GET['sub_x'] and $_GET['sub_y'] containing the
X/Y cordinate where the button was clicked (assuming it was GET method
form submission)

John

-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall dot org  http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-


>-Original Message-
>From: Thomas [mailto:[EMAIL PROTECTED] 
>Sent: Wednesday, April 02, 2003 9:27 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Submit Image Button
>
>
>I have a problem with my php.
>
>I have a form and in that form there is an image submit 
>button.  When I click on it, it won't tell me if the submit 
>button is clicked. It works fine with a normal one.
>
>sample:
>
> if (!$submit) {
>?>
>
>
>
>src="../News/themes/xFClan/button_submit.gif"
>border="0" name="submit" value="Login" width="55" height="19" 
>alt="Submit">
>
>
>} else {
>echo "you clicked";
>}
>?>
>
>If I use   This works finedo I 
>need to do something else with the code? Help is very appreciated.
>
>Cheers.
>
>
>
>
>-- 
>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: Re: [PHP] submit

2003-03-28 Thread Diksha Neel


hi guys,
yeah, i now believe this really is an off day for me.
probably because i did not have food today!
well, my problem is a really funny one.
through dew4.html's submit button i want to get connect
to new6.php from which should open a file.
but as soon as i click on the submit button, i get
"page cannot be displayed" .
i dont know what to do.
giving code for new6.php.
tata,
diksha.
hii am
fine";
$contents=fwrite($fp,string);
echo "'$contents'";
fclose($fp);
?>
___
Odomos - the only  mosquito protection outside 4 walls -
Click here to know more!
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&wn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] submit

2003-03-28 Thread Nikunj Virani
change  to 

Regards,
Nikunj Virani
- Original Message -
From: "Diksha Neel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 28, 2003 4:13 PM
Subject: [PHP] submit


> hi all,
> seems to be and off day for me.
> simple things aren't working.
> have this really stupid thing called dew3.html
> in which is a submit button to connect to new6.php
> that will in turn create a file sandrew.html.
> but the submit button in dew3.html is seen but isn't
> working.
> help please.
> sending code for dew3.html.
>
> thanks,
> diksha.
>
> 
> 
> dew
> 
> 
> 
> 
> 
> 
> 
>
>
> ___
> Odomos - the only  mosquito protection outside 4 walls -
> Click here to know more!
>
http://r.rediff.com/r?http://clients.rediff.com/odomos/Odomos.htm&&odomos&&w
n
>
>
> --
> 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 button

2003-03-06 Thread Rich Gray
> hi everybody,
> 
> i have a PHP script by name registration.php
> in which i have a submit button at the bottom.
> the form in this script is sent to p.php by "GET".
> but on clicking the submit button, nothing happens
> attaching registration.php.
> 
> p.php has only the following:
>  echo "hi how are u";
> ?>
> 
> please help,
> diksha.

Can you post the form code?
Rich

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



Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery



in the PHP script:

extract($HTTP_POST_VARS);
if( isset($submit1) ) header("location: thispage.php");
else if( isset($submit2) ) header("location: thatpage.php");


- Original Message - 
From: "Rick Emery" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 2:25 PM
Subject: Re: [PHP] Submit buttons


Yes, you can.   Simply give the buttons differnt names:



in the PHP script:
extract($HTTP_POST_VARS);
is( isset($submit1) )
{
}
else if( isset($submit2) )
{
}

- Original Message - 
From: "Greg" <[EMAIL PROTECTED]>
To: <>
Sent: Tuesday, February 25, 2003 2:11 PM
Subject: [PHP] Submit buttons


Is there any way that I can have a form submit to different pages depending
on the submit button that is pressed?  Thanks!



-- 
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Submit buttons

2003-02-25 Thread Rick Emery
Yes, you can.   Simply give the buttons differnt names:



in the PHP script:
extract($HTTP_POST_VARS);
is( isset($submit1) )
{
}
else if( isset($submit2) )
{
}

- Original Message - 
From: "Greg" <[EMAIL PROTECTED]>
To: <>
Sent: Tuesday, February 25, 2003 2:11 PM
Subject: [PHP] Submit buttons


Is there any way that I can have a form submit to different pages depending
on the submit button that is pressed?  Thanks!



-- 
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 buttons

2003-02-25 Thread Cal Evans
using JavaScript you can use an  and in the onClick call
a function that sets the form's target and then calls
document.formname.submit();

=C=

* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperformer.com

-Original Message-
From: Greg [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Submit buttons


Is there any way that I can have a form submit to different pages depending
on the submit button that is pressed?  Thanks!



--
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 Form

2003-01-08 Thread Justin French
is your question in regards to:

a) how to bring data from the 1st form across to the 2nd, so that it can all
be updated together OR

b) how to POST data from a form using a html link, probably with javascript


If b, best place to ask is a javascript list/newsgroup, or by looking for
something similar, and checking out how they did it.


Cheers,

Justin



on 09/01/03 9:10 AM, Stephen ([EMAIL PROTECTED]) wrote:

> Hello,
> 
> I have a question. First of all, I want to save the data a user has typed in a
> form into a MySQL database so they can load it up for later use but, I need to
> first submit all the form vars on the current page from a link. This may be
> Javascript, but either way, I'm not sure how to do it. Any ideas? Here's a
> graph kinda...
> 
> -User enters form and submits the first page
> --User taken to second form
> ---User fills out the first two fields
> User clicks a "Save Progress" link and all form fields submitted
> (I can do beyond this part but just so you get the idea of what I mean)
> -PHP saves current form vars to a MySQL database
> --User told information saved and he leaves
> ---User comes back next day, clicks load
> User select his current project
> -User taken to the last form he was on, fields filled in
> 
> Thanks,
> Stephen Craton
> http://www.melchior.us
> 
> "What's the point in appearance if your true love, doesn't care about it?" --
> http://www.melchior.us


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




Re: [PHP] Submit hitting enter problem

2002-11-11 Thread dwalker
 It is a client side browser issue.  Which browser are you testing within???



-Original Message-
From: rija <[EMAIL PROTECTED]>
To: php <[EMAIL PROTECTED]>
Date: Sunday, November 10, 2002 9:49 PM
Subject: [PHP] Submit hitting enter problem


What am I missing?

My form does not submit when I hit enter in the text box.
I do something approximately like this :



 
...


//

Thanks in advance.



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




Re: [PHP] Submit hitting enter problem

2002-11-11 Thread Jason Wong
On Monday 11 November 2002 17:59, Richard Allsebrook wrote:
> One point nobody seems to have raised about why its important to quote
> attribute values ...
>
>  $Value="foo bar";
> echo "";
> ?>
>
> will produce the following code in the browser
>
> 
>
> and renders in the browser (testing in ie6) as a text box containing only
> the word foo
>
> (The browser sets the value to foo and things bar is an unknown attribute
> so correctly ignores it)
>
> quoting the attribute value fixes it
>
>  $Value="foo bar";
> echo "
> ?>
>
> produces
>
> 

The OP is aware of this and has pointed it out :)

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Start every day off with a smile and get it over with.
-- W.C. Fields
*/


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




Re: [PHP] Submit hitting enter problem

2002-11-11 Thread Richard Allsebrook
One point nobody seems to have raised about why its important to quote
attribute values ...

";
?>

will produce the following code in the browser



and renders in the browser (testing in ie6) as a text box containing only
the word foo

(The browser sets the value to foo and things bar is an unknown attribute so
correctly ignores it)

quoting the attribute value fixes it


?>

produces



"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:20021233.17744.php-general@;gremlins.com.hk...
> On Monday 11 November 2002 10:44, rija wrote:
> > What am I missing?
> >
> > My form does not submit when I hit enter in the text box.
> > I do something approximately like this :
> >
> > 
> > 
> > 
> > ...
> > 
> >
>
> What happens when ENTER is pressed depends on what browser you're using.
> Different browsers exhibit different behaviours, eg the old versions of
> Netscape (v4 and before) does not submit on ENTER. Also, put quotes around
> your attribute values eg:
>
> 
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> The more I know men the more I like my horse.
> */
>



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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread @ Edwin
Hello,

"Charles Wiltgen" <[EMAIL PROTECTED]> wrote:

> David Rice wrote...
>
> > It's not "mandatory" to put quotes around attributes, but it would be
wise to
> > use this style="recommended" method of representing attributes, if for
no
> > reason="other" than to get used to a habit="good".
>
> It is mandatory for XHTML, I believe.
>

It is. Without the quotes, the validator would complain. I came across this
some time ago:

  http://www.w3.org/TR/xhtml1/#h-4.4

- E


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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Charles Wiltgen
David Rice wrote...

> It's not "mandatory" to put quotes around attributes, but it would be wise to
> use this style="recommended" method of representing attributes, if for no
> reason="other" than to get used to a habit="good".

It is mandatory for XHTML, I believe.

-- Charles Wiltgen


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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 14:04, rija wrote:
> Really big thank to everybody,
>
> But, now, I know what happening, because I check form submit using
> isset($_POST['submit']), so if user don't press submit button,
> $_POST['submit'] stay null even the rest is already sent. Then my script
> send me back to the first page.

Like everybody had said "different browsers do different things on ENTER". 

Some browsers (eg Opera) will submit your form as if you had clicked on the 
submit button. Others (eg IE), like you've already found out for yourself, 
submits the form but does not send the submit button.


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
If in any problem you find yourself doing an immense amount of work, the
answer can be obtained by simple inspection.
*/


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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 13:36, rija wrote:
> Sure !
>
> But just simple question?
> Is it necessary to put quotes around these attributes values?

Let's put it this way, using quotes will not break any browser. Not using 
quotes /may/ make your page not work correctly on browsers which implement 
strict syntax checking.

> Because I think quotes increase the site size, and using IE4, IE5, IE6,
> NS4, OPERA, quotes don't change anything.

Yes, but by how much? You'll probably shave much more off the byte count by 
optimising your graphics than scrimping on quotes. Assuming a 56K modem 
downloading at 4KB/s, you would have to remove over 4000 quotes to save 1 sec 
of download time. 

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
President Reagan has noted that there are too many economic pundits and
forecasters and has decided on an excess prophets tax.
*/


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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread rija
Really big thank to everybody,

But, now, I know what happening, because I check form submit using
isset($_POST['submit']), so if user don't press submit button,
$_POST['submit'] stay null even the rest is already sent. Then my script
send me back to the first page.


- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 4:28 PM
Subject: Re: [PHP] Submit hitting enter problem


> on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) wrote:
>
>
> Actually, I miss-read your question... do you WANT the form to be
submitted
> when hitting return/enter???
>
> And you find that this is not happening when you are in a text field???
>
> Correct?
>
>
> This is a browser thing... I don't *think* there's anything in the
standards
> to say when hitting enter should/shouldn't work -- i think it's something
> that each browser will do differently.
>
> There may be something you can do with javascript.
>
>
> Perhaps check out:
> http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html
>
>
> Or find a similar form example on another site, and dig around thru the
code
> to have a look how they did it.
>
>
> Justin
>
>



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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread David Rice
Hi Rija:

No It's not "mandatory" to put quotes around attributes, but it would 
be wise to use this style="recommended" method of representing 
attributes, if for no reason="other" than to get used to a habit="good".

coding="happiness"

David

On Monday, November 11, 2002, at 12:36 AM, rija wrote:

Sure !

But just simple question?
Is it necessary to put quotes around these attributes values?
Because I think quotes increase the site size, and using IE4, IE5, 
IE6, NS4,
OPERA, quotes don't change anything.


Of course if I have somethings with space, for value's attribute, It is
important to put quote because sometimes users enter space.


- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 3:33 PM
Subject: Re: [PHP] Submit hitting enter problem

What happens when ENTER is pressed depends on what browser you're 
using.
Different browsers exhibit different behaviours, eg the old versions 
of
Netscape (v4 and before) does not submit on ENTER. Also, put quotes 
around
your attribute values eg:



--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development 
*

/*
The more I know men the more I like my horse.
*/


--
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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Khalid El-Kary
well, you are right they may work, but according to the sepcification qoutes 
should be added, you should follow it, because you don't know the hidden 
browsers out there which you didn't test, and IE, Opera, NS can't guarantee 
that they will support this behaviour in future releases





_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus


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



Re: [PHP] Submit hitting enter problem

2002-11-10 Thread rija
Sure !

But just simple question?
Is it necessary to put quotes around these attributes values?
Because I think quotes increase the site size, and using IE4, IE5, IE6, NS4,
OPERA, quotes don't change anything.


Of course if I have somethings with space, for value's attribute, It is
important to put quote because sometimes users enter space.


- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 3:33 PM
Subject: Re: [PHP] Submit hitting enter problem

> What happens when ENTER is pressed depends on what browser you're using.
> Different browsers exhibit different behaviours, eg the old versions of
> Netscape (v4 and before) does not submit on ENTER. Also, put quotes around
> your attribute values eg:
>
> 
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> The more I know men the more I like my horse.
> */
>
>
> --
> 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 hitting enter problem

2002-11-10 Thread @ Darwin
A missing  tag? Some browsers are picky, so you might want to also do
what someone else suggested to you earlier, which is to put quotes around
your attribute values. This is especially important to implement while HTML
fades out and languages based on XML (XHTML in particular) fade into
popularity. Good luck.

> -Original Message-
> From: rija [mailto:rija@;vatu.com]
> Sent: Sunday, November 10, 2002 8:45 PM
> To: php
> Subject: [PHP] Submit hitting enter problem
>
>
> What am I missing?
>
> My form does not submit when I hit enter in the text box.
> I do something approximately like this :
>
> 
> 
> 
> ...
> 
>
> //
>
> Thanks in advance.
>


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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Wong
On Monday 11 November 2002 10:44, rija wrote:
> What am I missing?
>
> My form does not submit when I hit enter in the text box.
> I do something approximately like this :
>
> 
> 
> 
> ...
> 
>

What happens when ENTER is pressed depends on what browser you're using. 
Different browsers exhibit different behaviours, eg the old versions of 
Netscape (v4 and before) does not submit on ENTER. Also, put quotes around 
your attribute values eg:



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
The more I know men the more I like my horse.
*/


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




RE: [PHP] Submit hitting enter problem

2002-11-10 Thread John W. Holmes
> Thanks for your quick answer,
> 
> But it doesn't change anything.
>  change my text box into big text area-
> 
> So I always have to click on submit button to submit the form.

So? This doesn't have anything to do with PHP, it's dependant on the
browser you are using. IE will do this for you sometimes, while most
other browsers don't, I think. 

Please ask your question on a relevant list.

---John Holmes...



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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Justin French
on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) wrote:

> Thanks for your quick answer,
> 
> But it doesn't change anything.
>  change my text box into big text area-
> 
> So I always have to click on submit button to submit the form.

Actually, I miss-read your question... do you WANT the form to be submitted
when hitting return/enter???

And you find that this is not happening when you are in a text field???

Correct?


This is a browser thing... I don't *think* there's anything in the standards
to say when hitting enter should/shouldn't work -- i think it's something
that each browser will do differently.

There may be something you can do with javascript.


Perhaps check out:
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html


Or find a similar form example on another site, and dig around thru the code
to have a look how they did it.


Justin


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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Jason Sheets
Return key presses in a  will usually be converted into a
newline (\n).

Making your browser submit the form when you press enter is an
HTML/Browser issue.  

You probably should look at a javascript solution because this is a
client side problem.

Jason

On Sun, 2002-11-10 at 21:16, rija wrote:
> Thanks for your quick answer,
> 
> But it doesn't change anything.
>  change my text box into big text area-
> 
> So I always have to click on submit button to submit the form.
> 
> 
> 
> - Original Message - 
> From: "Justin French" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
> Sent: Monday, November 11, 2002 3:45 PM
> Subject: Re: [PHP] Submit hitting enter problem
> 
> 
> > on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote:
> > 
> > > 
> > 
> > I think you need to use a  if you wish for the returns to be
> > submitted.
> > 
> > Cheers
> > 
> > 
> > Justin French
> > 
> > Creative Director
> > http://Indent.com.au
> > Web Developent & 
> > Graphic Design
> > 
> > 
> > 
> 
> 
> 
> -- 
> 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 hitting enter problem

2002-11-10 Thread rija
Thanks for your quick answer,

But it doesn't change anything.
 change my text box into big text area-

So I always have to click on submit button to submit the form.



- Original Message - 
From: "Justin French" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "php" <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 3:45 PM
Subject: Re: [PHP] Submit hitting enter problem


> on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote:
> 
> > 
> 
> I think you need to use a  if you wish for the returns to be
> submitted.
> 
> Cheers
> 
> 
> Justin French
> 
> Creative Director
> http://Indent.com.au
> Web Developent & 
> Graphic Design
> 
> 
> 



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




Re: [PHP] Submit hitting enter problem

2002-11-10 Thread Justin French
on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote:

> 

I think you need to use a  if you wish for the returns to be
submitted.

Cheers


Justin French

Creative Director
http://Indent.com.au
Web Developent & 
Graphic Design



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




RE: [PHP] Submit form from javascript code

2002-08-31 Thread Todd Pasley

Hi

Instead of
>   retrun false;
im sure you meant
return false;

The reason its working with confirm and the like is because of their return
code which is actually true.
Try changing it to return true, im pretty sure that will fix it.

Cheers,

Todd.

> -Original Message-
> From: Madjid Nasiri [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 31 August 2002 9:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Submit form from javascript code
>
>
> Hi all
> I need submit a form from javascript code. My code near this code:
>
> 
> 
> 
> 
> function submitform(iId)
> {
>   document.myform.elements['id'].value=iId;
>   document.myform.submit();
>   alert("foo"); // This is code is dummy
>   retrun false;
> }
> 
> Id One
> Id Two
> 
> Id 1000
> 
>
> If I remove alert() call in submitform function, this code noting
> work, but
> if i used alert() or confirm() function this code working, Why?
> How can i remove alert() function and my code work?
>
> Thanks for Answer
>
> Madjid Nasiri
> [EMAIL PROTECTED]
> http://www.kawacomputer.com
>
>
>
>
> --
> 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 form from javascript code

2002-08-31 Thread Jason Wong

On Saturday 31 August 2002 19:43, Madjid Nasiri wrote:

> I need submit a form from javascript code. My code near this code:

Please ask javascript questions on a javascript list.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Steinbach's Guideline for Systems Programming:
Never test for an error condition you don't know how to handle.
*/


-- 
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 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




Re: [PHP] Submit Form

2002-04-22 Thread Tyler Longren

Are you using method=post in your  tag?  Sometimes, if you leave that
out, some weird stuff will appear in the URL.

Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com

- Original Message -
From: "dengach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 9:10 AM
Subject: [PHP] Submit Form


> I am using php4 on windows and has been serving php files just fine
however,
> once I started creating forms i.e data submition in forms. The browser
> displays /php4/php.exe as part of the url even after I try to refresh the
> page.
>
>
>
> --
> 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

2001-10-21 Thread Jack Dempsey

you could just declare one multidimensional array as a session var, then
carry that aroundthat's easiest way i've found.

jack

-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 8:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Submit


lol NP--actually I am using sessions-Will I have to declare each form
variable as a session variable to do this?


"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> sorry chip, i'm so used to using sessions, i just kind of assumed you
would
> :-)
> sessions will carry the data around.if you can't/won't use them, you
> could use curl to post the values along, but sessions are much more
elegant
> for this kind of thing
>
> my $.02
> jack
>
> -Original Message-
> From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 21, 2001 8:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Submit
>
>
> But won't using a header kill all the form data?  Thought you had to use
> post for that?
>
>
>
> "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > sure, have to states for your script, one is the normal blank form, the
> > second is the check.
> > in your check, validate the data. if its not good, print the form out
> again
> > with those values already filled in if they apply.
> > if it is good, redirect to a new page using header();
> http://php.net/header
> > be careful not to output any before you make this header call.
> >
> > jack
> >
> > -Original Message-
> > From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, October 21, 2001 8:29 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Submit
> >
> >
> > I got a form (form.php) that recalls itself when you hit submit to
verify
> > all the fields.  If all the fields are good, I need it to automatically
> post
> > to a new page.  Anyway to do this?
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Submit

2001-10-21 Thread Chip Landwehr

lol NP--actually I am using sessions-Will I have to declare each form
variable as a session variable to do this?


"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> sorry chip, i'm so used to using sessions, i just kind of assumed you
would
> :-)
> sessions will carry the data around.if you can't/won't use them, you
> could use curl to post the values along, but sessions are much more
elegant
> for this kind of thing
>
> my $.02
> jack
>
> -Original Message-
> From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 21, 2001 8:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Submit
>
>
> But won't using a header kill all the form data?  Thought you had to use
> post for that?
>
>
>
> "Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > sure, have to states for your script, one is the normal blank form, the
> > second is the check.
> > in your check, validate the data. if its not good, print the form out
> again
> > with those values already filled in if they apply.
> > if it is good, redirect to a new page using header();
> http://php.net/header
> > be careful not to output any before you make this header call.
> >
> > jack
> >
> > -Original Message-
> > From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, October 21, 2001 8:29 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Submit
> >
> >
> > I got a form (form.php) that recalls itself when you hit submit to
verify
> > all the fields.  If all the fields are good, I need it to automatically
> post
> > to a new page.  Anyway to do this?
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey

sorry chip, i'm so used to using sessions, i just kind of assumed you would
:-)
sessions will carry the data around.if you can't/won't use them, you
could use curl to post the values along, but sessions are much more elegant
for this kind of thing

my $.02
jack

-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 8:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Submit


But won't using a header kill all the form data?  Thought you had to use
post for that?



"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> sure, have to states for your script, one is the normal blank form, the
> second is the check.
> in your check, validate the data. if its not good, print the form out
again
> with those values already filled in if they apply.
> if it is good, redirect to a new page using header();
http://php.net/header
> be careful not to output any before you make this header call.
>
> jack
>
> -Original Message-
> From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 21, 2001 8:29 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Submit
>
>
> I got a form (form.php) that recalls itself when you hit submit to verify
> all the fields.  If all the fields are good, I need it to automatically
post
> to a new page.  Anyway to do this?
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Submit

2001-10-21 Thread Chip Landwehr

But won't using a header kill all the form data?  Thought you had to use
post for that?



"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> sure, have to states for your script, one is the normal blank form, the
> second is the check.
> in your check, validate the data. if its not good, print the form out
again
> with those values already filled in if they apply.
> if it is good, redirect to a new page using header();
http://php.net/header
> be careful not to output any before you make this header call.
>
> jack
>
> -Original Message-
> From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 21, 2001 8:29 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Submit
>
>
> I got a form (form.php) that recalls itself when you hit submit to verify
> all the fields.  If all the fields are good, I need it to automatically
post
> to a new page.  Anyway to do this?
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey

sure, have to states for your script, one is the normal blank form, the
second is the check.
in your check, validate the data. if its not good, print the form out again
with those values already filled in if they apply.
if it is good, redirect to a new page using header(); http://php.net/header
be careful not to output any before you make this header call.

jack

-Original Message-
From: Chip Landwehr [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 21, 2001 8:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Submit


I got a form (form.php) that recalls itself when you hit submit to verify
all the fields.  If all the fields are good, I need it to automatically post
to a new page.  Anyway to do this?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] submit form values to new site after validation

2001-04-19 Thread Phillip Bow

Using the POST method will prevent the credit card data from being included
in the url.  I would still be careful about sending data like this via a
POST to a form handler on an entirely different site.  It would be better if
there was some sort of secure socket to transfer the data through.
--
phill

"Tom Beidler" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm trying to modify and e-commerce site which originally sent an email
with
> the credit card info in an email. Now they would like to pass credit card
> numbers to a payment-processing service. For this particular service,
> Authorize.net, you would normally direct the form data to the
> payment-processing service. The page is currently setup to resubmit to
> itself and validate fields before anything else.
>
> I would like to keep that functionality but I'm wondering how to pass the
> values onto the payment-processing center after the validation. The flow
> would be, hit the submit button and send the data to the page to validate
> the fields and then send the info to Authorize.net. The form currently has
> about 15 fields to validate and only needs to pass 3 of them to the
> payment-processing center.
>
> I'm still relatively new to this and I'm thinking the only way to pass
> variables is through a submitted form or the url and I don't want to put
the
> credit card info in the url.
>
> Any help would be greatly appreciated.
>
> Tom
>
> >>.>>.>>>.>.>.
> Tom Beidler
> Orbit Tech Services
> 805.682.8972 (phone)
> 805.682.5833 (fax)
> [EMAIL PROTECTED]
> http://www.orbittechservices.com/
> >>.>>.>>>.>.>.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] submit form witout clilck submit button

2001-03-26 Thread Ankur Verma

you can do this using Javascript

place this in your HTML code


|
|
Head title and the other stuff
|
|

|
|

Continue with the HTML Code

|
|




This will cause the form to be sumitted as soon as the page completes up
loading

hope that helps

regards

Ankur Verma
NetCentric Division
HCL Technologies
Noida, Uttar Pradesh
India



-Original Message-
From: Jacky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 1:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] submit form witout clilck submit button


Hi all
I have to submit username, domain name and password values to the cgi file,
It starts from the login page and submit values to a php page to tie up
username and domain name value together before submit it to the cgi file as
two values ( "username+domainname" , "password") .
The thing is that at php file, how do I submit those values without user
click on the submit button,  say make the form submit right away as soon as
the page is read?
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] submit button

2001-03-17 Thread Richard

You will have to use JavaScript.

Use the following:
 document.poster.action.disabled=true;   // Disable Submit & Preview
button

Or, if you aren't having it within a form, put the javascript in the end of
the page and write:

document.btnSend.disabled=true;

Note that the first code disables ALL "action" buttons...

- Richard


""george"" <[EMAIL PROTECTED]> wrote in message
99029b$78h$[EMAIL PROTECTED]">news:99029b$78h$[EMAIL PROTECTED]...
> IS there a way of making sure that a submit button cant be pressed twice.I
> am using a form to send an email and dont want two emails showing up.
>
> TIA
>
> george
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] $submit does not work! strange !!!!!!!!

2001-02-23 Thread Adrian Murphy

try naming the submit button submitX and then see if $submitX is a var.
- Original Message -
From: kaab kaoutar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 23, 2001 9:58 AM
Subject: [PHP] $submit does not work! strange 


> Hi guys!
>
> I'm using a form that refreshes itself when submitting it!
> however when it's submitted i make a condition on the value of $submit so
as
> to make some instructions but the problem is that the $submit is always
> empty but i can see that the page is reloaded when i submit the form.
>
> Thanks
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] submit opens two windows/pages

2001-01-14 Thread Cal Evans

I'd do it with JavaScript. Dynamically composed JavaScript if need be. But
it seems to me that it would be easier to do this on the client side.

Cal
http://www.calevans.com


-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 14, 2001 2:33 PM
To: php list
Subject: [PHP] submit opens two windows/pages


Is there a way to have two windows open after a submit. I have a client that
would like to add a "thank you" pop up window after submitting an order. So
after entering there billing info and hitting the submit button the form is
directed to a summary page that summarizes the sale. I would also like a pop
up or junior window to open.

Thanks for any assistance,
Tom

>>.>>.>>>.>.>
Tom Beidler
Orbit Tech Services
805.455.7119 (cell)
805.682.8972 (phone)
805.682.5833 (fax)
[EMAIL PROTECTED]
>>.>>.>>>.>.>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]