The purpose of this note is to test the automation process for correctly converting an article title in to a friendly URL. The process uses the PHP str_replace function first to convert spaces to hyphens. Then a the PHP RegEx (preg_replace) furhter filters the article title to alphanumeric and spaces.
Might as well test out the TinyMCE code insert as well.
$myArticleURL = preg_replace("/[^a-zA-Z0-9-]+/", "", str_replace(' ', '-', $_POST['txtArticleTitle']));
If all goes well, the defaulting for article URLs will be complete. I will add some polish by allowing the ability to override the defaulted value with a custom value entered by the user. Maybe later I will look into a dynamic JavaScript or jQuery solution that could replace the server side PHP function with a client side solution.
:D