Forum Moderators: open

Message Too Old, No Replies

need to use javascript for delimiter

         

srinshcl

9:26 pm on Nov 12, 2005 (gmt 0)

10+ Year Member



How to add delimiter other than spaces to text area.If I enter multiple value to the text area and submit the data using the form ,the text area muliple values are separated by space delimiter ,where this will fail for me if i have the values like
config data
config values
config data values

where if i use space as delimiter it fails as i getting config and data as separate values.So i need to use any delimiter such as $,in text area,and if user gives muliple entries i will separate using delimiters like $,how to add delimiter to text area.
or can i split in cgi page after submitting the form.
where i am getting
$mode=$query->param('mode');

'mode' => 'config values config data values config data'.
when i submit an form where i hit an cgi page
how to separate the value i get from textarea in form.

Thanks,
srins.

DrDoc

9:30 pm on Nov 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is probably better to split the value in your CGI script. Using JavaScript for something like that is quite unreliable ... Doing it on the server side is a much safer bet.

Now, that still does not address the fact that the textarea does not submit the newlines. What is the wrap attribute set to?