My page has the following -
A recordset detailing Parent details -The page may or may not have a parent page, if it does the recordset creates an array 'arrParentDetail' of which the third item is the Parent Page SEF URL. (I'll refer to this as 'Parent-Detail-SEF')
In the event that this exists, the SEF URL for the new page would be -
So in this instance the hidden input should have a value equal to 'Parent-Detail-SEF' +'/' + The New Page Title
The New Page Title should remove all non a-z A-Z 0-9 characters and replace all spaces with a '-' So
New! Page About&* Something Special :) would become -
In the event that the arrParentDetail doesn't exist the hidden input would be just -
my page title input has a name and id of title.
Finally I also need to be able to write the final output to a span so that the user can see what the URL will be.
I'd be grateful for some assistance with this please.
without the preceeding '/'