As superdezign says, your line setting @title is only set in reg_process.php, which is only called after the form has been submitted. Simplest solution should be to put this line:
Line number On/Off | Expand/Contract @ $title = addslashes ( $_POST [ 'title' ] ) ; before your line in your code, but keep it in reg_process too just in case its used there, won't cause any...