[PHP] Set a default global - $_GET[]

2002-09-25 Thread Patrick Lebon
How do i set a default value for a url parameter ($_GET[".."]) in PHP 4.1? I currently have a class that sets a default global value but this does not work in this version - the script displays an error if no url value is passed in the url. Thanks -- PHP General Mailing List (http://www.php.n

[PHP] Wrap content with a layout file

2002-09-22 Thread Patrick Lebon
Is there a way to create a layout file that can wrap around other pages with data in them. I am currently using two includes (one at the start of the page and one at the end) but was wondering if there is a better way to do this. Thanks -- PHP General Mailing List (http://www.php.net/) To unsu

[PHP] Replace linefeed/newline from text inputs with tag?

2002-09-22 Thread Patrick Lebon
If i have a textarea form input for users and they enter in return spaces, how can i replace the ascci chars with html tags? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php