You need to put quotes around your variable:

<INPUT NAME=ThreadName TYPE=TEXT SIZE=40 MAXLENGTH=40 VALUE="<@VAR ThreadName 
SCOPE=User>">

Otherwise the browser stops reading at the first space.

Shannon Henderson
Web and System Services
Reed College
Portland, Oregon


--- You wrote:
Quick query; I've built a form that stores data in variables (local scope) for 
verification before posting to a databse

The data shows up OK in debug and posts OK to the database, but when I preview it in a 
Text field in a form, the "type=text" fields just display the data up to the first 
white space! The data does get to the database OK, so it is OK in the variable - it 
just doesn't display properly...

For example, the data "Test 17" would, in the form, be displayed as "Test" - but be 
punched into the database as "Test 17"

I've done this before without any problems - what am I doing wrong??



TANGO 3.6, Webstar 4.0, Mac OS 9.1

Results below:


displays OK
------------
ThreadName (no encoding) <@VAR ThreadName SCOPE=User>          --->displays OK!

ThreadName (no encoding) <TEXTAREA COLS=50 ROWS=16 NAME=ThreadName><@VAR ThreadName 
SCOPE=User></TEXTAREA>          --->displays OK!


cuts off data after first white space
-------------------------------------------
ThreadName (no encoding) <INPUT NAME=ThreadName TYPE=TEXT SIZE=40 MAXLENGTH=40 
VALUE=<@VAR ThreadName SCOPE=User>>       ----> problem

ThreadName (encoding = NONE) <INPUT NAME=ThreadName TYPE=TEXT SIZE=40 MAXLENGTH=40 
VALUE=<@VAR ThreadName SCOPE=User ENCODING=NONE>>        ----> problem

ThreadName (encoding = METAHTML) <INPUT NAME=ThreadName TYPE=TEXT SIZE=40 MAXLENGTH=40 
VALUE=<@VAR ThreadName SCOPE=User ENCODING=METAHTML>>      ----> problem

ThreadName (encoding = MULTILINEHTML) <INPUT NAME=ThreadName TYPE=TEXT SIZE=40 
MAXLENGTH=40 VALUE=<@VAR ThreadName SCOPE=User ENCODING=MULTILINEHTML>>      ----> 
problem

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body
--- end of quote ---
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to