Jump to content

Faces icon


garydt

Recommended Posts

Here's what I've tried but the symbols aren't going into the textarea.

        <form action="<?php echo $loginFormAction; ?>" method="POST" name="form1" id="form1">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<td>
  <a href="javascript:;" onClick="document.form1.post.value="""><img src="../smiley.gif" border="0" /></a></td>
		  <td ><br />
		  <strong>Enter post</strong><br />
		  <textarea name="post" cols="60" rows="7"><?php echo $edit; ?></textarea><p>
  		  <input name="Preview" type="submit" id="Preview" value="Preview" />  
  		  <input type="submit" name="Submit" value="Submit" /><p>

	  <input type="hidden" name="MM_insert" value="form1">
</td>

Link to comment
Share on other sites

Thanks. I did what the site said and i put-

        <form action="<?php echo $loginFormAction; ?>" method="POST" name="form1" id="form1">
<script language=”javascript”>
<!–
function writeImgTag(code)
{
var cache = document.form1.post.value;
this.code = code;
document.form1.post.value = cache + ” <img src=’../smileys/” + code + “.gif’> “;
document.form1.post.focus();
}
//–>
</script>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<td>
<img src="../smileys/smiley.gif" onClick=”writeImgTag(’smiley’)” />
</td>
		  <td ><br />
		  <strong>Enter post</strong><br />
		  <textarea name="post" cols="60" rows="7"><?php echo $edit; ?></textarea><p>
  		  <input name="Preview" type="submit" id="Preview" value="Preview" />  
  		  <input type="submit" name="Submit" value="Submit" /><p>

 

I still get nothing in  the textarea when i click the face. What have i got wrong?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.