extent Posted December 6, 2008 Report Share Posted December 6, 2008 sataisīju viesugramatu, bet kā lai uzliek tā, ja kāds no logiem netiek aizpildīts, nevar apstiprināt ziņu. Un kā lai ievieto autorizācijas kodu? pie kā šeit <table width="400" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td><strong>Viesugramata </strong></td> </tr> </table> <table width="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC"> <tr> <form id="form1" name="form1" method="post" action="addguestbook.php"> <td> <table width="400" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF"> <tr> <td width="117">Name</td> <td width="14">:</td> <td width="357"><input name="name" type="text" id="name" size="40" /></td> </tr> <tr> <td>Email</td> <td>:</td> <td><input name="email" type="text" id="email" size="40" /></td> </tr> <tr> <td valign="top">Comment</td> <td valign="top">:</td> <td><textarea name="comment" cols="40" rows="3" id="comment"></textarea></td> </tr> <tr> <td> </td> <td> </td> <td><input type="submit" name="Submit" value="Submit" /> <input type="reset" name="Submit2" value="Restartet" /></td> </tr> </table> </td> </form> </tr> </table> <table width="400" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td><strong><a href="viewguestbook.php">Apskatit viesugramatu</a> </strong></td> </tr> </table> Kā arī, failā, kas rāda komentārus, kā lai izdara tā, ka rādās kādu 30 komentāri, bet pārējiepāriet otra lapā. Ļoti svarīgi zināt. Liels paldies tam, kas to paskaidros. Link to comment Share on other sites More sharing options...
anonīms Posted December 7, 2008 Report Share Posted December 7, 2008 Tu neesi tas pats no mostwanted? http://php.lv/f/index.php?showtopic=2935 (ierakstu dalīšana pa lappusēm) logiem: if(empty($_POST['name']) OR empty($_POST['email']) OR empty($_POST['text'])) { echo "aizpildi visus laukus!"; } else { // sūtam datus } Link to comment Share on other sites More sharing options...
daGrevis Posted March 6, 2011 Report Share Posted March 6, 2011 1) if( empty( $_POST['username'] ) ) {} 2) Meklē kā "CAPTCHA". ) Link to comment Share on other sites More sharing options...
rATRIJS Posted March 6, 2011 Report Share Posted March 6, 2011 Un tagad paskaties gadu :) Link to comment Share on other sites More sharing options...
daGrevis Posted March 6, 2011 Report Share Posted March 6, 2011 My bad... ) Link to comment Share on other sites More sharing options...
Recommended Posts