Forum Moderators: coopster
I'd like to have a php form which enables users to highlight a section of text they have entered in a text box and then add a url elsewhere - ie in another text box - then be able to press a button and turn the highlighted section into a link. This should occur before posting, so that the user can add more text, etc, befero they send off the form.
I hope that makes sense. Is it possible in php?
Thanks
Persia
You could definitely do that except for highlighting a small bit of text. The text would have to be entered into its own textbox. I actually use a popup for this. The user can click on a link to go to the link generator.
They enter the text and url in 2 textboxes, hit submit and it writes out the link in a textarea. They can then copy and paste it back into the other window.
You could do it with php but javascript is much simpler and user friendly for this setup.