franknu Posted March 28, 2007 Share Posted March 28, 2007 i would like to know what is the right quatation for this line <input type='text' name='BusinessName' Value='$_POST['BusinessName'],'>"; i am getting a syntax error thank you Quote Link to comment Share on other sites More sharing options...
papaface Posted March 28, 2007 Share Posted March 28, 2007 echo '<input type="text" name="BusinessName" Value="'.$_POST['BusinessName'].'">'; Quote Link to comment Share on other sites More sharing options...
Lumio Posted March 28, 2007 Share Posted March 28, 2007 or echo "<input type=\"text\" name=\"BusinessName\" Value=\"{$_POST['BusinessName']}\">"; Quote Link to comment Share on other sites More sharing options...
franknu Posted March 28, 2007 Author Share Posted March 28, 2007 i keep getting parser error with both of them Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/townsfin/public_html/authorization/Update_Page.php on line 260 Quote Link to comment Share on other sites More sharing options...
trq Posted March 28, 2007 Share Posted March 28, 2007 Post your actual code! Quote Link to comment Share on other sites More sharing options...
boo_lolly Posted March 28, 2007 Share Posted March 28, 2007 lumio's example is the way i do it. i don't see how it could be throwing an error. it must be your code. so, yeah, do what thorpe said. Quote Link to comment Share on other sites More sharing options...
Koobi Posted March 28, 2007 Share Posted March 28, 2007 consider the heredoc syntax and Post your actual code! Quote Link to comment Share on other sites More sharing options...
papaface Posted March 28, 2007 Share Posted March 28, 2007 lumio's example is the way i do it. Although mine and lumio's method produce the same output, my way: echo '<input type="text" name="BusinessName" Value="'.$_POST['BusinessName'].'">'; is much easier and its quicker to read and code. Quote Link to comment Share on other sites More sharing options...
Lumio Posted March 28, 2007 Share Posted March 28, 2007 jep... I also use only singe quotes but for completeness I postet the other version. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.