rendered paste body<?$sql="select * from articlesmembers where username='$ses_username'";$res=mysql_query($sql);while($obj=mysql_fetch_object($res)){$email=$obj->email;$fname=$obj->fname;$lname=$obj->lname;}$pic=getSetting("UPLOADIMAGE");?><script language="JavaScript">function checkifvalid(){if (window.document.myform.title.value==""){alert("Kindly enter the title");window.document.myform.title.focus();return false;}if (window.document.myform.instructions.value==""){alert("Kindly enter the instructions");window.document.myform.instructions.focus();return false;}if (window.document.myform.ingredients.value==""){alert("Kindly enter the ingredients");window.document.myform.ingredients.focus();return false;}if (window.document.myform.select.value=="N/A"){alert("You haven't selected the category, please select it");window.document.myform.select.focus();return false;}document.myform.submit();}</script><html><head><link rel="stylesheet" href="images/stylesheet.css" type="text/css"><title>Wonder articles</title></head><body leftmargin="0" rightmargin="0" bottommargin="0" topmargin="0" marginwidth="0" marginheight="0" ><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><br> <table width="80%" height="10" border="0" align="center" cellpadding="0" cellspacing="0" class="mytable"> <tr> <td valign="top"> <div align="center"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="bg_table"> <form name="myform" action="index.php?cmd=9" method="post" enctype="multipart/form-data"> <input type="hidden" name="phid" value="<? print $phid; ?>"> <tr > <td width="5" class="header"> </td> <td height="20" colspan="3" class="header">Submit Article </td> </tr> <tr > <td height="25" rowspan="3" class="normal"> </td> <td height="6" colspan="2" class="normal"> </td> <td height="0" align="left" class="normal"> </td> </tr> <tr > <td width="254" height="6" class="normal"><div align="right"><strong>Title</strong></div></td> <td width="24" class="normal"> </td> <td height="6" align="left" class="normal"><input name="title" type="text" class="mytext" id="title2" size="52" maxlength="70"></td> </tr> <tr > <td height="13" colspan="2" class="normal"> </td> <td height="13" align="left" class="normal"> </td> </tr> <tr> <td height="25" rowspan="2" class="normal"> </td> <td class="normal"><div align="right"><strong>Category</strong></div></td> <td class="normal"> </td> <td align="left" class="normal"><select name="bgid" id="select"> <option value="N/A" selected="selected">-------</option> <? $sql1="select * from articlescategory"; $res=mysql_query($sql1); while($obj=mysql_fetch_object($res)) { $categoryid=$obj->categoryid; $groupname=$obj->catname; $divider=$obj->divider; if($divider!="Y") print "<option value='$categoryid'>$groupname</option>"; } ?> </select></td> </tr> <tr> <td colspan="2" class="normal"> </td> <td align="left" class="normal"> </td> </tr> <tr > <td height="25" rowspan="2" class="normal"> </td> <td height="15" class="normal"><div align="right"><strong>Posting about: </strong></div></td> <td height="15" class="normal"> </td> <td height="9" align="left" class="normal"> <input name="ingredients" type="text" class="mytext" id="ingredients" value="" size="50" maxlength="250"></td> </tr> <tr > <td height="10" colspan="2" class="normal"> </td> <td height="10" align="left" class="normal"> </td> </tr> <tr > <td height="25" class="normal"> </td> <td height="25" class="normal"><div align="right"><strong>Full Story: </strong></div></td> <td height="25" class="normal"> </td> <td height="19" align="left" class="normal"><textarea name="instructions" cols="50" rows="15" class="mytext"></textarea></td> </tr> <? if(!$ses_username) { ?> <tr > <td width="5" height="25" class="normal"> </td> <td height="25" valign="middle" class="normal"><div align="right"><strong>Your Name</strong></div></td> <td height="25" valign="middle" class="normal"> </td> <td width="509" height="19" align="left" valign="middle" class="normal"><br> <input name="contributor" type="text" class="mytext" size="32" maxlength="20"> </td> </tr><? } else { echo "<input name=\"contributor\" type=\"hidden\" size=\"32\" value=\"$ses_username\">";} if($pic=='Y'){ ?> <tr > <td width="5" height="25" class="normal"> </td> <td height="25" valign="middle" class="normal"><div align="right"><strong>Upload Picture</strong></div></td> <td height="25" valign="middle" class="normal"> </td> <td width="509" height="19" align="left" valign="middle" class="normal"><br> <input name="picture" size="28" type="file" class="mytext" value="<? ?>"> </td> </tr> <? } ?> <tr align="center" > <td height="6" colspan="4" class="normal"> </td> </tr> <tr align="center" > <td height="6" colspan="4" class="normal"><input name="image" type="image" onClick="return checkifvalid();" src="images/submit.gif"></td> </tr> <tr align="center" > <td height="13" colspan="4" class="normal"> </td> </tr> </form> </table> </div></td> </tr> </table></td> </tr></table></body></html>