I created a simple survey for my work website, most of the PHP is on my
process.php document, which is referenced by a form on a seperate page
containing the form with the method of post.
On my process.php page, the script obtains the field data using the
$_REQUEST[] function.
I have a small if
On Mon, Aug 3, 2009 at 1:08 PM, Allen McCabeallenmcc...@gmail.com wrote:
I created a simple survey for my work website, most of the PHP is on my
process.php document, which is referenced by a form on a seperate page
containing the form with the method of post.
On my process.php page, the
Your if-statement should be like this:
[code]
if(isset($_REQUEST['firstname']) !empty($_REQUEST['firstname'])) {
...
}
[/code]
--
---
Contact info:
Skype: parham-d
MSN: fire_lizard16 at hotmail dot com
email: parham90 at GMail dot com
Allen McCabe allenmcc...@gmail.com wrote in message
On Mon, 03 Aug 2009 20:11:44 +0300, Parham Doustdar parha...@gmail.com
wrote:
Your if-statement should be like this:
[code]
if(isset($_REQUEST['firstname']) !empty($_REQUEST['firstname'])) {
...
}
[/code]
Or even:
[code]
if(!empty($_REQUEST['firstname'])) {
...
}
[/code]
Because empty
Thanks!
On Mon, Aug 3, 2009 at 10:13 AM, Andrew Ballard aball...@gmail.com wrote:
On Mon, Aug 3, 2009 at 1:08 PM, Allen McCabeallenmcc...@gmail.com
wrote:
I created a simple survey for my work website, most of the PHP is on my
process.php document, which is referenced by a form on a
if(isset($_REQUEST['firstname']) !empty($RESULT['firstname'])) {
$name = $_REQUEST['firstname'];
} else {
$name = 'Sir or Madam';
}
Can anyone see any problems with the code?
Your conditional will never evaluate to true. What is $RESULT? Where
did it come from? $RESULT is not a
: php-general@lists.php.net
Subject: [PHP] isset not functioning
I created a simple survey for my work website, most of the PHP is on my
process.php document, which is referenced by a form on a seperate page
containing the form with the method of post.
On my process.php page, the script obtains
7 matches
Mail list logo