Hello I need a little help wuth the correct syntax for a for a wordpress plugin. The creator if the plugin said to add this line... <input type=â€hidden†name=â€entry_category†value=â€â€˜.$_GET['cat'].’â€> Code (markup): after this $page.=’<form method=â€POST†action=â€" name=â€entryformâ€> Code (markup): into this $page.='<form method="POST" action="" name="entryform"> <table>'.$Fields.' <tr align="left"><td><b>Website URL:</b></td><td><input type="text" name="entry_url" value="http://"></td></tr> <tr align="left"><td><b>Website Title:</b></td><td><input type="text" name="entry_title"></td></tr> <tr align="left"><td valign="top"><b>Description:</b>'.$Tags.'</td><td><textarea name="entry_description" rows="3" cols="35"></textarea></td></tr>'; Code (markup): I tried but I just get a syntax error for the added line... any help would be greatly appreciated!
The quotes got messed up. This should work: $page.='<form method="POST" action="" name="entryform"> <input type="hidden" name="entry_category" value="'.$_GET['cat'].'"> <table>'.$Fields.' <tr align="left"><td><b>Website URL:</b></td><td><input type="text" name="entry_url" value="http://"></td></tr> <tr align="left"><td><b>Website Title:</b></td><td><input type="text" name="entry_title"></td></tr> <tr align="left"><td valign="top"><b>Description:</b>'.$Tags.'</td><td><textarea name="entry_description" rows="3" cols="35"></textarea></td></tr>'; Code (markup):