well ye i need website help u no if u wna put a html code in like a form like for a image ppl can highlight it and get html code from the form if u no wot i mean cud u tell me code :S
well ye i need website help u no if u wna put a html code in like a form like for a image ppl can highlight it and get html code from the form if u no wot i mean cud u tell me code :S
I dont get what you mean, do you want to make a form?
Could you repeat that in full english?
Last edited by James!; 29-01-2006 at 07:29 PM.
yes i didnt understand that either...
Hey,
I think he wants a BB Parser.
If so it's beyond your skill with PHP
- Dan
sounds like he means:
:sHTML Code:<textarea value="HELLO"></textarea>
lol he mean like the thing so you can put like the code to your link button in a box and everyone can like see it and copy it
Originally Posted by bananasislegend
this thread might be better than sex..
You'll need to write a simple JavaScript code which places BB tags either side of the text when you press a button.
You could use something like:
(Replace the question mark with the order of the form element).Code:function red(theForm) { theForm.elements[?].value= "[red]"+ theForm.elements[?].value +"[/red]" }
Use a button like this to call the function:
Then with what ever server side script you're using, after filtering the user submitted data replace the BB code for the correct HTML tag.Code:<input onClick="javascript:red(this.form);" type="button" value="Italics">
E.g. using str_ireplace or str_replace in PHP or Replace in ASP...
Want to hide these adverts? Register an account for free!