Ok, just to put it out there. I am awful at javascript... seriously...
I have this form where users can create a new page...
This is where the user selects what type of page he would like to create.
I would like to have it so when the user selects HTML it adds .html where .ext is:HTML Code:<p> <label for="pType">Page Type:</label> <select name="pType"> <option value="HTML">HTML</option> <option value="PHP">PHP</option> </select> </p>
If user selects PHP then it adds .php to the same place.HTML Code:<p> <label for="pName">Page Name:</label> <input type="text" name="pName" />.ext </p>
I don't know how todo this at all as I mentioned at top...
I haven't used javascript in a long time, like 5 months, and I didn't even really know it then...
Thanks to all who help!


Reply With Quote


Bookmarks