Page 1 of 1

How move data between text area?

Posted: Fri Nov 10, 2006 7:33 pm
by paul_20k
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi 

I have attached the screenshots and code for the table. Can anyone look at it. How to do it with PHP and Mysql? I want to select few activities from the left textarea and move to the right textarea. I guess everybody saw this concept on other websites...

[syntax="html"]<table width="582" border="0"> 
        <tr> 
          <td width="167" class="form_text">Available Activities </td> 
          <td width="112">&nbsp;</td> 
          <td width="153">&nbsp;</td> 
          <td width="6">&nbsp;</td> 
          <td width="176">&nbsp;</td> 
        </tr> 
        <tr> 
          <td rowspan="2" align="left"><textarea name="textarea" rows="10">A 
B 
B 
C 
C 
C 
D 
D 
F 
F 
G 
H 
H 
S 
S 
S 
S 
S 
W 
W</textarea></td> 
          <td rowspan="2" align="center" valign="middle"><input type="button" value="Add >>" name="add2" /> 
              <input type="button" value="<< Remove" name="add12" /> 
              <br /></td> 
          <td colspan="2" rowspan="2"><textarea name="textarea" rows="10"></textarea></td> 
          <td>&nbsp;</td> 
        </tr> 
        <tr> 
          <td>&nbsp;</td> 
        </tr> 
      </table>

feyd | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Fri Nov 10, 2006 7:37 pm
by feyd
I'm pretty sure you're going to need Javascript for this and not even a hint of PHP.

Posted: Fri Nov 10, 2006 7:56 pm
by paul_20k
Hi Feyd

Thanks feyd. Can you expalin me little more about it as I am newbie? I really have no idea where to look for help...

Posted: Fri Nov 10, 2006 8:41 pm
by feyd
Arbitrary selection detection and manipulation isn't the most simple of subjects for the most part. As such, it may be a subject that a newbie should avoid until later.

Am I correct that the text is supposed to be static? As in, the user is not supposed to be able to alter it. If so, a list box is more appropriate and far more simple to produce the desired behaviors. I know we've had several threads on the subject..

viewtopic.php?p=154266#154266 possibly.

Posted: Sat Nov 11, 2006 6:34 am
by paul_20k
hi feyd

yes its a static text. you suggested a list box for this, how can I make multiple selection of the text with list box as I need to parse multiple text to database?

Thanks

Posted: Sat Nov 11, 2006 6:40 am
by Chris Corbyn
paul_20k wrote:hi feyd

yes its a static text. you suggested a list box for this, how can I make multiple selection of the text with list box as I need to parse multiple text to database?

Thanks
<select multiple=multiple .... >

Posted: Sat Nov 11, 2006 7:20 am
by paul_20k
Thanks feyd