Re: Simplified blog creation – blogname generated from Blog Title
Another approach. With this bit of Javascript you can copy the input from blog_title to blogname as you type:
<script type = "text/javascript">
function copyIt() {
x = document.getElementById("blog_title").value;
document.getElementById("blogname").value = x;
}
</script>
...
<input name="blog_title" type="text" id="blog_title" value="'.wp_specialchars($blog_title, 1).'" maxlength="24" onkeyup="copyIt()"/>
<input name="blogname" type="text" id="blogname" value="" />
Now if I could figure out how to sanitize/lowercase the input between blog_title and blogname, this could be a really cool solution.
A big if again… Suggestions very much appreciated!