Here's the snip:
<?php
// edit records directly ask for authorisation first-->later
include "../includes/db_connect.php";
$id=$_GET["rec"];
$qry="SELECT * FROM eame WHERE id=$id";
$res=mysql_query($qry);
if(!$res)die("something not right");
$data=mysql_fetch_array($res, MYSQL_ASSOC);
?>
<FORM action="edit.php" method="post">
Project Title: <INPUT TYPE="text" maxlength=100 width=40 value=<? print
$data["pros"]; ?>>
Here's the problem:
$data["pros"] contains "This is a project title"
Displayed in the input field: This
everything starting from the space is stripped.
What can I do to prevent this from happening?
thanks,
Mich