kate_rose Posted June 15, 2008 Share Posted June 15, 2008 Hi, I am trying to write a function to create a checkbox. So as part of that I need to print <form method="post" action="<?php $_SERVER['PHP_SELF'];?>"> my code is [code/] print ("<form method=\"post\" action=\"<?php $_SERVER['PHP_SELF'];?>\">"); I must be not spotting a reserved character but for some reason I don't see it. Probably just working to late . . . please help Thanks Kate Link to comment https://forums.phpfreaks.com/topic/110269-solved-newb-stuck-on-1-line-of-code-syntax-help/ Share on other sites More sharing options...
The Little Guy Posted June 15, 2008 Share Posted June 15, 2008 Try this: <?php echo '<form method="post" action="'.$_SERVER['PHP_SELF'].'">'; ?> Link to comment https://forums.phpfreaks.com/topic/110269-solved-newb-stuck-on-1-line-of-code-syntax-help/#findComment-565791 Share on other sites More sharing options...
kate_rose Posted June 15, 2008 Author Share Posted June 15, 2008 Thanks Guy I am going to turn in now before I make any more stupid mistakes. G'Night Link to comment https://forums.phpfreaks.com/topic/110269-solved-newb-stuck-on-1-line-of-code-syntax-help/#findComment-565794 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.