[PHP] Var question

2002-10-24 Thread Clint Tredway
I am building a form that posts to itself. I have the following to detect the submit button being clicked: If($_POST[go] == add link) I am getting a warning that says 'go' is undefined. How do I define this? Thanks, Clint -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Var question

2002-10-24 Thread 1LT John W. Holmes
You can just check for if(isset($_POST['go'])) You don't really care what the value is since it's just a button. ---John Holmes... - Original Message - From: Clint Tredway [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 24, 2002 9:33 AM Subject: [PHP] Var question

Re: [PHP] Var question

2002-10-24 Thread Maxim Maletsky
is go a variable that is passed via post? I guess yes but you get this error without submitting yet. There are three solutions: 1. Change your error reporting level to 55: error_reporting(55). This will stop warning your undefined variables. 2. Prefix the variable with an at-mark:

RE: [PHP] Var question

2002-10-24 Thread Clint Tredway
question You can just check for if(isset($_POST['go'])) You don't really care what the value is since it's just a button. ---John Holmes... - Original Message - From: Clint Tredway [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 24, 2002 9:33 AM Subject: [PHP] Var

Re: [PHP] var question

2001-04-16 Thread Plutarck
Add an "=" on the end of your url. Viola. -- Plutarck Should be working on something... ...but forgot what it was. ""Jeroen Geusebroek"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Guys, I have a question about the way PHP handles var/strings. Let's

Re: [PHP] var question

2001-04-16 Thread Aemuli
ople think I just do it to annoy them. I just like the way "viola" sounds :) Plutarck Should be working on something... ...but forgot what it was. - Original Message - From: "Brian Clark" [EMAIL PROTECTED] To: "Plutarck" [EMAIL PROTECTED] Sent: Monday, 16. Apri

Re: [PHP] var question

2001-04-16 Thread Plutarck
Note: Yes, I meant string instrument. Any references to YoYo Ma will be dealt with swiftly and severly. -- Plutarck Should be working on something... ...but forgot what it was. ""Plutarck"" [EMAIL PROTECTED] wrote in message 9bfp5e$169$[EMAIL PROTECTED]">news:9bfp5e$169$[EMAIL PROTECTED]...

Re: [PHP] var question

2001-04-16 Thread Steve Edberg
You can also look at environment variable $QUERY_STRING. For example, if ($HTTP_SERVER_VARS['QUERY_STRING'] == 'login') { ...do log in procedure If register_globals is on, all you need is if ($QUERY_STRING == 'login') If you might be passing other parameters