Re: [PHP-WIN] Re: Forms-PHP-and-errors

2003-07-09 Thread Luis Moreira
The error complains about an unexpected "!", right ? What if you do if (!isset($title)) { That's the correct syntax, you know ?... Luis - Original Message - From: "jh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003

AW: [PHP-WIN] Re: Forms-PHP-and-errors

2003-07-09 Thread Sven Schnitzke
tle = $_POST['title']; if (trim($title) == '') { // handle error: title is mandatory } else { // do whatever is needed with title } } ... might do the job. -- Sven > -Ursprüngliche Nachricht- > Von: jh [SMTP:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 9. J

[PHP-WIN] Re: Forms-PHP-and-errors

2003-07-09 Thread jh
Hi, Thanks for reply. I have wrapped your code in like so:- ?> called it p-6-2.php and this is the error I get:- Parse error: parse error, unexpected '!', expecting '(' in D:\web\myforms\p-6-2.php on line 4 I have used my own form which uses javascript to validate the fname and su

[PHP-WIN] Re: forms, php

2003-01-27 Thread Wayne
hey, you could try with a double qote instead of single quote. $submit = $_POST["submit"]; but with globals on, global $submit; will work too, "Adrian Partenie" <[EMAIL PROTECTED]> wrote in message 008401c2c00b$d35213a0$0bc46150@artel19">news:008401c2c00b$d35213a0$0bc46150@artel19... He