Siemka, na mojej stronce http://www.rgclan.yoyo.pl/ chciałbym zrobić , tak aby można było wypełniać formularz i po nacisnięciu dodaj grę narazie nic się nie działo ( pozniej zrobie zeby sie działo ). Dla przykładu dam mój plik faq.php, chciałbym go przerobic tak aby się wyświetlał formularz, moglibyście powiedzieć gdzie mam wklejić ten kod:

To jest plik FAQ.php

  1. <?php
  2. /*---------------------------------------------------+
  3. | eXtreme-Fusion Content Management System |
  4. +----------------------------------------------------+
  5. | Copyright (c) 2005 eXtreme Crew |
  6. | <a href=\"http://www.extreme-fusion.pl\" target=\"_blank\">http://www.extreme-fusion.pl</a>  |
  7. +----------------------------------------------------+
  8. | Engine Php-fusion by Nick Jones |
  9. | <a href=\"http://www.php-fusion.co.uk/\" target=\"_blank\">http://www.php-fusion.co.uk/</a>  |
  10. +----------------------------------------------------+
  11. | Released under the terms & conditions of v2 of the |
  12. | GNU General Public License. For details refer to  |
  13. | the included gpl.txt file or visit <a href=\"http://gnu.org\" target=\"_blank\">http://gnu.org</a> |
  14. +----------------------------------------------------*/
  15. require_once "maincore.php";
  16. require_once "subheader.php";
  17. require_once "side_left.php";
  18. include LOCALE.LOCALESET."faq.php";
  19.  
  20. if (!isset($cat_id)) {
  21. opentable($locale['400']);
  22. $result = dbquery("SELECT * FROM ".$db_prefix."faq_cats ORDER BY faq_cat_name");
  23. $rows = dbrows($result);
  24. if ($rows != 0) {
  25. $columns = 2; $counter = 0;
  26. echo "<table cellpadding='0' cellspacing='0' width='100%' class='tbl'>\n<tr>\n";
  27. while($data = dbarray($result)) {
  28. if ($counter != 0 && ($counter % $columns == 0)) echo "</tr>\n<tr>\n";
  29. $num = dbcount("(faq_id)", "faqs", "faq_cat_id='".$data['faq_cat_id']."'");
  30. echo "<td align='center' valign='top'><a href='".FUSION_SELF."?cat_id=".$data['faq_cat_id']."'>".$data['faq_cat_name']."</a> <span class='small2'>($num)</span>\n";
  31. if ($data['faq_cat_description'] != "") echo "<br>\n<span class='small'>".$data['faq_cat_description']."</span>";
  32. echo "</td>\n";
  33. $counter++;
  34. }
  35. echo "</tr>\n</table>\n";
  36. } else {
  37. echo "<center><br>\n".$locale['410']."<br><br>\n</center>\n";
  38. }
  39. closetable();
  40. } else {
  41. if (!isNum($cat_id)) fallback(FUSION_SELF);
  42. if ($data = dbarray(dbquery("SELECT * FROM ".$db_prefix."faq_cats WHERE faq_cat_id='$cat_id'"))) {
  43. opentable($locale['401'].": ".$data['faq_cat_name']);
  44. $rows = dbcount("(*)", "faqs", "faq_cat_id='$cat_id'");
  45. if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
  46. if ($rows != 0) {
  47. $result = dbquery("SELECT * FROM ".$db_prefix."faqs WHERE faq_cat_id='$cat_id' ORDER BY faq_id LIMIT $rowstart,15");
  48. $numrows = dbrows($result);
  49. $i = 1;
  50. while ($data = dbarray($result)) {
  51. echo "<b>".$data['faq_question']."</b><br>\n".nl2br(stripslashes($data['faq_answer']));
  52. echo ($i != $numrows ? "<br><br>\n" : "\n");
  53. $i++;
  54. }
  55. closetable();
  56. if ($rows != 0) echo "<div align='center' style='margin-top:5px;'>".makePageNav($rowstart,15,$rows,3,FUSION_SELF."?cat_id=$cat_id&amp;")."\n</div>\n";
  57. } else {
  58. echo $locale['411']."\n";
  59. closetable();
  60. }
  61. } else {
  62. redirect(FUSION_SELF);
  63. }
  64. }
  65. require_once "side_right.php";
  66. require_once "footer.php";
  67. ?>


A to jest mój formularz:

  1. <?php
  2. <center><h3>Dodaj Grę</h3></center>
  3. <hr>
  4. Nazwa Gry:&nbsp;&nbsp;&nbsp; <input type="text" name="" value="" size="">
  5. <p><p>
  6. Twórca Gry:&nbsp;&nbsp; <input type="text" name="" value="" size="">
  7. <p></p>
  8. Kategoria:&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select name="asd" size="1">
  9. <option>Przygodowa</option>
  10. <option>Akcja</option>
  11. <option>Strzelanka</option>
  12. <option>RPG</option>
  13. <option>MMORPG</option>
  14. <option>Wysigowa</option>
  15. <option>Samochodowa</option>
  16. <option>Platformówka</option>
  17. <option>Inna</option>
  18. </select>
  19. <p>
  20. </p>
  21. Opis Gry:&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="" value="" >
  22. <br>
  23. <p></p>
  24. <center><input type="submit" name="Dodaj" value="Dodaj Grę" size="20" align="middle"></center>
  25. ?>


Proszę o pomoc, z góry dzięki