You could use the shorthand notation with isset, it keeps things on one line..
[php]
$name = isset($_POST['txtName']) ? stripslashes($_POST['txtName']) : '';
[/php]
Last edited by digital-ether; Mar 24th, 2007 at 6:47 am.
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
Offline 1,250 posts
since Sep 2005