Hi,

I am having a hard time trying to implement a sticky form to a input field value that's already wrapped into an echo in my form. If I add the sticky code syntax value, the fields display my code. I think my problem is not knowing how to properly implement the syntax inside the value="". I'd really appreciate any help I can get. Thanks!

Note: The input fields are generated by a loop.

Here's the string of code:

echo"<td class=\"td_padded\" colspan=\"2\" align=\"right\" ><span style=\"color:#FF6600;\">*</span>Line".$i." &nbsp;</td><td class=\"td_padded\" colspan=\"3\"><input class=\"checkout-input\" name=\"Linetext_".$i.$row['OrderDetailID']."\"  size=\"30\" maxlength=\"30\"  type=\"text\" value=\"<? php echo ".$text." ?>\" /></td></tr>";

    ... value=\"<? php echo ".$text." ?>\" ...

    should be

    ... value=\"$text\" ...

    As its already in an echo, there's no need to try to open php inside a php statement (actually if it wasn't quoted it would be throwing errors at you)

      Thanks!

      The code I've posted is from a shopping cart form. What I am trying to accomplish is if the customer enters data into the fields and they decide to continue shopping the data will not get lost when they come back to the form.

      Here's the current code for the value:

      value=\"".$text."\"
      
        Write a Reply...