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
tedd tedd.sperl...@gmail.com 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
--
---
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
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 ron.pigg...@actsministries.org
wrote:
INPUT TYPE=image
SRC=http://www.theverseoftheday.info/store-images/trash_can.png;
WIDTH=20 HEIGHT=20
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
On Jun 18, 2011, at 11:54 AM, Ron Piggott ron.pigg...@actsministries.org
wrote:
INPUT TYPE=image
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
On 06/18/2011 11:06 AM, Jason Pruim wrote:
On Jun 18, 2011, at 11:54 AM, Ron Piggott ron.pigg...@actsministries.org
wrote:
INPUT TYPE=image
SRC=http://www.theverseoftheday.info/store-images/trash_can.png; WIDTH=20
HEIGHT=20 style=float: right;boarder: 0; alt=Remove Product From
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:
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:
!DOCTYPE html PUBLIC -//W3C//DTD
[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
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
[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:
form name=myform ---WHAT IS THE
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
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
, 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
[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?
* 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
--- [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.
Sam mailto:[EMAIL PROTECTED]
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
* Thus wrote Sam ([EMAIL PROTECTED]):
What do you do with this?
Submit.x=22Submit.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
we need more code than ? makeArrays(); ?...
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
--- 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 ? makeArrays(); ?
I am invoking that function with a Submit button OnClick event.
[snip]
How do I keep the page from
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
Hi,
Nitin [EMAIL PROTECTED] wrote:
Never mind, but could you state the reason?
Just guessing here...
...[snip]...
--- Nitin [EMAIL PROTECTED] wrote:
img src=image.gif alt=Submit onClick=document.entry.submit()
This is a great example of what not to do.
...because it relies on
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
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'])))
: {
: ...
: .
: input type=submit name=SubmitForm value=Submit
: }
:
I have changed the code, but it doesn't work.
if (!(isset($_Post['SubmitForm_x'])))
{
...
.
input name=SubmitForm type=image src=image.gif alt=SubmitForm
}
else
{
.
}
Eugene Lee [EMAIL PROTECTED] az alábbiakat írta a következo üzenetben
news:[EMAIL PROTECTED]
You can always use:
img src=image.gif alt=Submit onClick=document.entry.submit()
Try it and enjoy
Nitin
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'])))
: {
: ...
: .
: input name=SubmitForm type=image src=image.gif alt=SubmitForm
: }
: else
: {
: .
: }
1. The
--- Nitin [EMAIL PROTECTED] wrote:
img src=image.gif alt=Submit onClick=document.entry.submit()
This is a great example of what not to do.
Use input type=image...
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
-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
have a look on button 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
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
http://www.php.net/manual/en/language.variables.external.php
input type=image src=image.gif name=sub
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
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
input type=image src=image.gif name=sub
This
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
: 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
change input type=button value=submit to input type=submit
value=submit
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
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
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:
?php
echo hi how
using JavaScript you can use an INPUT type='IMAGE' 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
Yes, you can. Simply give the buttons differnt names:
INPUT type=submit name=submit1 value=Submit This
INPUT type=submit name=submit2 value=Submit That
in the PHP script:
extract($HTTP_POST_VARS);
is( isset($submit1) )
{
}
else if( isset($submit2) )
{
}
- Original Message -
From: Greg
: 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:
INPUT type=submit name=submit1 value=Submit This
INPUT type=submit name=submit2 value=Submit That
in the PHP script
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
One point nobody seems to have raised about why its important to quote
attribute values ...
?
$Value=foo bar;
echo INPUT type=text value=$Value;
?
will produce the following code in the browser
INPUT type=text value=foo bar
and renders in the browser (testing in ie6) as a text box containing
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 INPUT type=text value=$Value;
?
will produce the following code in the browser
INPUT type=text value=foo bar
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
on 11/11/02 12:44 PM, rija ([EMAIL PROTECTED]) wrote:
input type=text name=bongabe value=something
I think you need to use a textarea if you wish for the returns to be
submitted.
Cheers
Justin French
Creative Director
http://Indent.com.au
Web Developent
Graphic Design
: 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:
input type=text name=bongabe value=something
I think you need to use a textarea if you wish for the returns to be
submitted.
Cheers
Justin French
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:
input type=text name=bongabe value=something
I think you need to use a textarea if you wish for the returns to be
submitted
on 11/11/02 2:16 PM, rija ([EMAIL PROTECTED]) wrote:
Thanks for your quick answer,
But it doesn't change anything.
textarea 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
Thanks for your quick answer,
But it doesn't change anything.
textarea 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
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 :
form action=index.php?s=add method=post
input type=text name=bongabe value=something
...
input type=submit value=submit
A missing /form 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
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
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
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
-
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
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
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
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
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
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
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:
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
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
Are you using method=post in your form 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:
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
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,
-
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]"
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, o
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
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.
--
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
77 matches
Mail list logo