This should work (notice quotes around var) : <INPUT TYPE="text"
NAME="whatever" VALUE="<?php echo $var; ?>">
This is incorrect (it only shows the first word) : <INPUT TYPE="text"
NAME="whatever" VALUE=<?php echo $var; ?>>

2. not sure about the second question but have you tried removing the
target, it seems to me that a target might not be necessary since the link
should already be opening an application that is associated with that file

Robert W. Collins II 
New Orleans Regional Transit Authority 
Phone : (504) 248-3826 

-----Original Message-----
From: Steve Bradwell [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 9:20 AM
Subject: [PHP] 2 newbie questions ;)

Hi there,

I am populating form elements (type="text") with values from a db, but if
the string has a space in it, it cuts the string off at the space. eg. $var
= "the cat in the hat"  but all you see in the text box is "the". is there a
function I should be adding to my echo line?

Also I have an anchor tag that is a link to open an Access db. For some
reason it opens 2 copies instead of one. i have tried the following: <a
href="..\foldername\microsoft_sucks.mde" target="_blank">Launch App</a>
              <a href="file://server/path/ms_sucks.mde"
target="_blank">Launch App</a>
but it seems to want to open two copies anyhow,
anyone seen this before?


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to