Re: [PHP] POST variables from a link...and popup new window

2005-04-01 Thread emre
document.FormToBeSubmitted.submit(); '; ?> you can also set some variables to your form, for example in the script body put this code to submit a form variable named 'testvariable' //first define the value somewhere before the

Re: [PHP] POST variables from a link...and popup new window

2005-03-29 Thread Richard Lynch
On Tue, March 29, 2005 1:09 pm, james tu said: > I have a link that, when clicked on, pops up a new window. > I want to use the POST method in order to pass information. Right now > I'm appending the parameters to the URL of the link and using GET to > retrieve the name/value pairs. You may be a

Re: [PHP] POST variables from a link...and popup new window

2005-03-29 Thread John Nichel
james tu wrote: Hi: I have a link that, when clicked on, pops up a new window. I want to use the POST method in order to pass information. Right now I'm appending the parameters to the URL of the link and using GET to retrieve the name/value pairs. Is there a way to do this? Yes. -- John C. Nich

[PHP] POST variables from a link...and popup new window

2005-03-29 Thread james tu
Hi: I have a link that, when clicked on, pops up a new window. I want to use the POST method in order to pass information. Right now I'm appending the parameters to the URL of the link and using GET to retrieve the name/value pairs. Is there a way to do this? -- -James -- PHP General Mailing Lis

Re: [PHP] post variables

2004-02-19 Thread Duncan Hill
On Thursday 19 February 2004 13:32, julian haffegee wrote: > Hi all, > > > I solved this today. It seems odd. > > If you define an action it DOES NOT work, but if you skip that entirely the > POST variables are sent! > > so > works > doesn't work. I have -never- seen that behaviour. In fact, I

Re: [PHP] post variables

2004-02-19 Thread julian haffegee
CTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 1:58 PM Subject: Re: [PHP] post variables > > Hi Chris > > print_r($_REQUEST); (is this what you mean by HTTP Request?) > print_r($_POST); > print_r($_GET); > > all give Array() > > its apache

Re: [PHP] post variables

2004-02-18 Thread julian haffegee
Hi Chris print_r($_REQUEST); (is this what you mean by HTTP Request?) print_r($_POST); print_r($_GET); all give Array() its apache release 10327100 (is that what you mean?) If I change the form method to GET works, and we get REQUEST: Array ( [username] => aa [password] => aa ) _GET: Array (

Re: [PHP] post variables

2004-02-17 Thread Chris Shiflett
--- julian haffegee <[EMAIL PROTECTED]> wrote: > Hi Richard > > yes it happens in Netscape 7 too, > > The thing is, it works in perl when I access the query string. But not > in php. > > could it be a setting in php.ini? Do you have a way to capture the raw HTTP? I'd like to see: 1. The HTTP R

Re: [PHP] post variables

2004-02-17 Thread julian haffegee
EMAIL PROTECTED]> Cc: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 11:22 PM Subject: Re: [PHP] post variables > Hello julian, > > Tuesday, February 17, 2004, 9:20:58 PM, you wrote: > > jh> I am having a nightmare accessing my POST varia

RE: Re: [PHP] post variables (SpamEnder: BLOCKED 8BZF-SE44074-lgonze@panix.com) (fwd)

2004-02-17 Thread Chris W. Parker
Lucas Gonze on Tuesday, February 17, 2004 2:00 PM said: > Is it possible to ban subscribers who issue this kind of > auto-response? i just wish people were smart enough to understand that no one cares about the spam in the other persons mailbox. we only care about t

Re: [PHP] post variables

2004-02-17 Thread Richard Davey
Hello julian, Tuesday, February 17, 2004, 9:20:58 PM, you wrote: jh> I am having a nightmare accessing my POST variables. I can red them if I use jh> the GET method on my form, but POST is always blank A *lot* of people are reporting this as of late and I'm beginning to wonder what the true caus

Re: Re: [PHP] post variables (SpamEnder: BLOCKED 8BZF-SE44074-lgonze@panix.com) (fwd)

2004-02-17 Thread Lucas Gonze
Is it possible to ban subscribers who issue this kind of auto-response? -- Forwarded message -- Date: Tue, 17 Feb 2004 21:33:04 - From: Alan Hale <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: Re: [PHP] post variables (SpamEnder: BLOCKED [EMAIL PROTECTED])

Re: [PHP] post variables

2004-02-17 Thread Lucas Gonze
I can't think of a reason for this, so I would doublecheck your assumptions. There is a $_SERVER variable to check the method. You might want to put the php printenv.php page in place of your current script to see what it says about the request method and POST variables. - Lucas On Tue, 17 Feb

[PHP] post variables

2004-02-17 Thread julian haffegee
Hi all, I am having a nightmare accessing my POST variables. I can red them if I use the GET method on my form, but POST is always blank I have while( list($key, $value) = each ($_POST)){ print "$key $value"; } print "_REQUEST: "; print_r($_REQUEST); print "_GET: "; print_r($_GET); print "_PO

Re: [PHP] Post variables and mysql queries

2003-10-27 Thread John Nichel
Luis Lebron wrote: If I use the following query string it does not work $query="Select * from users where userid='$_POST['userid']'"; Use curly braces to eval array elements inside of a string $query = "SELECT * FROM users WHERE userid='{$_POST['userid']}'"; -- By-Tor.com It's all about th

Re: [PHP] Post variables and mysql queries

2003-10-27 Thread Chris Shiflett
--- Luis Lebron <[EMAIL PROTECTED]> wrote: > $query="Select * from users where userid='$_POST['userid']'"; Use curly braces: $query = "select * from users where userid = '{$_POST['userid']}'"; Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://

[PHP] Post variables and mysql queries

2003-10-27 Thread Luis Lebron
This may be a dumb question but here goes. I have been trying to use $_POST globals in sql queries. If I use the following query string it does not work $query="Select * from users where userid='$_POST['userid']'"; However, this works $userid=$_POST["userid"] $query="Select * from users where us

Re: [PHP] POST variables, funny thing

2003-10-27 Thread Chris Shiflett
--- Joao Andrade <[EMAIL PROTECTED]> wrote: > if ( $_POST['nova'] =! "") Equal not? Perhaps you mean not equal? :-) Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mai

Re: [PHP] Post variables getting lost

2003-10-27 Thread Chris Shiflett
--- Joao Andrade <[EMAIL PROTECTED]> wrote: > Windowsitis? Mind your slashes. Also, you should quote HTML attributes (though this isn't your problem). So, try this: > [snip] > Same thing here. Quote your attributes. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP D

RE: [PHP] POST variables, funny thing

2003-10-27 Thread Jay Blanchard
[snip] A funny thing was happeng with a GET variable here, after testing it with an if clause, it would be set to 1, like this, after that: if ( $_POST['nova'] =! "") $_POST['nova'] = 1... Is that alright? [/snip] GET (see your question) or POSTnot that it matters. if($_POST['n

[PHP] POST variables, funny thing

2003-10-27 Thread Joao Andrade
A funny thing was happeng with a GET variable here, after testing it with an if clause, it would be set to 1, like this, after that: if ( $_POST['nova'] =! "") $_POST['nova'] = 1... Is that alright? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] Post variables getting lost

2003-10-27 Thread Eugene Lee
On Mon, Oct 27, 2003 at 03:00:32AM -0200, Joao Andrade wrote: : : Hey people, : : Something odd is happening :) I've this form on a page: : : Backslashes are allowed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Post variables getting lost

2003-10-26 Thread Binay
IL PROTECTED]> Sent: Monday, October 27, 2003 10:30 AM Subject: [PHP] Post variables getting lost > > Hey people, > > Something odd is happening :) I've this form on a page: > > > > > > Author > > > > New Category > >

[PHP] Post variables getting lost

2003-10-26 Thread Joao Andrade
Hey people, Something odd is happening :) I've this form on a page: Author New Category Category ".$cat ; //and place it in the select $lincat = mysql_fetch_row ($categorias);# pega uma linha } ?> Quotation And then I have in quotation

Re: [PHP] POST Variables get passed as GET variables.

2003-06-05 Thread Leif K-Brooks
This has absolutley nothing to do with PHP, and is a client-side issue. Michael A Smith wrote: Hey, So I've got this form that passes POST variables. However, they keep getting passed as get variables. Example: Get's sent to it as: url.php?action=something What's going on here? This is a n

[PHP] POST Variables get passed as GET variables.

2003-06-05 Thread Michael A Smith
Hey, So I've got this form that passes POST variables. However, they keep getting passed as get variables. Example: Get's sent to it as: url.php?action=something What's going on here? This is a new installation of PHP 4.3.1, Apache 1.3... -Michael -- PHP General Mailing List (http://ww

Re: [PHP] Post Variables

2002-12-04 Thread bahwi
The problem is right here: for ($i=0; $i<=12; $i++) { echo $_POST['$i']; } Single quotes cause variables to not be interpolated. IE: $i = 5; echo $i; echo "$i"; echo '$i'; ?> this prints out: 55$i See? Change that line to echo $_POST[$i]; and it should work just fine. Regards, --Joseph

Re: [PHP] Post Variables

2002-12-04 Thread Chris Shiflett
--- Brad Bonkoski <[EMAIL PROTECTED]> wrote: > for ($i=0; $i<=12; $i++) > { > echo ""; > echo ""; > } You only want one tag. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Post Variables

2002-12-04 Thread Brad Bonkoski
Hello, I am trying to make a script that looks something like: for ($i=0; $i<=12; $i++) { echo ""; echo ""; } Then I am posting those to another page, and trying to get the data out for ($i=0; $i<=12; $i++) { echo $_POST['$i']; } And it doesn't work. Any thoughts on if something li

[PHP] post variables to MySQL fields

2001-11-09 Thread Rory O'Connor
A while back somebody answered a question about some PHP code that would take the $HTTP_POST_VARS and create the SQL that would write them to a MySQL table (provided the posted var names matches the MySQL fieldnames). Does anyone have info on that project? The PHP searchable archive is down