![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 642 Pomógł: 2 Dołączył: 9.03.2006 Ostrzeżenie: (30%) ![]() ![]() |
Moj problem polega na tym ze formularze po nacisnieciu submita poprostu sie odswiezaja i nic sie nie dzieje. Nawet jezeli instaluje popularne gotowe skrypty to i tak wystepuje to samo, juz nie wiem czy to wina serwera czy moze jakis blad php.
przyklad: Demo czytnik rss, wybierzcie kanal a i tak sie nie zmieni. Juz nie wiem co robic bo niektore formularze dzialaja a niektore nie. |
|
|
![]()
Post
#2
|
|
Admin Techniczny Grupa: Administratorzy Postów: 2 071 Pomógł: 93 Dołączył: 5.07.2005 Skąd: Olsztyn ![]() |
tak bez kodu php to Ci powiem że tam siedzi jakiś gumiś i decyduje czy ma zadziałać czy nie w danej chwili :]
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 642 Pomógł: 2 Dołączył: 9.03.2006 Ostrzeżenie: (30%) ![]() ![]() |
Kiedy formularz jest w htmlu to wszystko dziala jezeli w php to juz nie, chociaz czasem dziala tez w php. Co do kodu to nie ma sensu dawac bo juz mowilem ze nawet jak instaluje jakies znane ( 100% sprawne ) skrypty to dzieje sie to samo.
Ale moge dac przyklad Cytat <?php
include("conn.php"); include("includes.php"); include("access.php"); //get the posted offers $q1 = "select count(*) from class_catalog where MemberID = '$_SESSION[MemberID]' "; $r1 = mysql_query($q1) or die(mysql_error()); $a1 = mysql_fetch_array($r1); if($_SESSION[MaxOffers] == '0' || $_SESSION[AccountStatus] == 'inactive' || $a1[0] >= $_SESSION[MaxOffers]) { header("location:more.php"); exit(); } $SelectCategory = "<select name=CategoryID>\n\t<option value=\"\"></option>\n\t"; //get the categories and create the select menu $q2 = "select * from class_categories order by CategoryName"; $r2 = mysql_query($q2) or die(mysql_error()); while($a2 = mysql_fetch_array($r2)) { $SelectCategory .= "<option value=\"$a2[CategoryID]\">$a2[CategoryName]</option>\n\t"; } $SelectCategory .= "</select>"; //get the member's assets, show them in a table (list), so the member will be able to edit or delete them $q3 = "select * from class_catalog where MemberID = '$_SESSION[MemberID]' "; $r3 = mysql_query($q3) or die(mysql_error()); if(mysql_num_rows($r3) > '0') { $ListMemberAsset .= "<table align=center width=400 cellspacing=0>\n"; $ListMemberAsset .= "<tr style=\"background-color:#D3D4E8; color:black; font-family:verdana; font-size:11; font-weight:bold\">\n\t<td width=300>Title</td>\n\t<td align=center width=100>Action</td>\n</tr>\n\n"; $col = "white"; while($a3 = mysql_fetch_array($r3)) { if($col == "white") { $col = "dddddd"; } else { $col = "white"; } $ListMemberAsset .= "<tr bgcolor=$col>\n\t<td><a class=BlackLink href=\"info$a3[ProductID].html\">$a3[ProductName]</a> "; if($a3[FeaturedStatus] == '1') { $ListMemberAsset .= "<sup><font face=verdana color=\"#990000\"><b>Featured!</b></font></sup>"; } $ListMemberAsset .= "</td>\n\t<td align=center><a class=GreenLink href=\"edit$a3[ProductID].html\">edit</a> | <a class=RedLink href=\"delete$a3[ProductID].html\">delete</a></td>\n</tr>\n\n"; } $ListMemberAsset .= "</table>\n"; } //get the priority levels $qc = "select * from class_members where MemberID = '$_SESSION[MemberID]' "; $rc = mysql_query($qc) or die(mysql_error()); $ac = mysql_fetch_array($rc); $Featured = $ac[FeaturedAds]; $Standard = $ac[StandardAds]; //count the users ads $qv = "select FeaturedStatus from class_catalog where MemberID = '$_SESSION[MemberID]' "; $rv = mysql_query($qv) or die(mysql_error()); while($av = mysql_fetch_array($rv)) { if($av[FeaturedStatus] == '1') { $f++; } else { $s++; } } if(empty($f)) { $f = '0'; } if(empty($s)) { $s = '0'; } $SelectPriority = "<select name=sp>\n\t<option value=\"\"></option>\n\t"; if($Featured > $f) { $SelectPriority .= "<option value=\"1\">Featured</option>\n\t"; } if($Standard > $s) { $SelectPriority .= "<option value=\"0\">Standard</option>\n\t"; } $SelectPriority .= "</select>\n"; include("templates/HeaderTemplate.php"); include("templates/AddTemplate.php"); include("templates/FooterTemplate.php"); ?> Ten post edytował [Lethys] 8.06.2007, 22:07:06 |
|
|
![]()
Post
#4
|
|
Grupa: Przyjaciele php.pl Postów: 698 Pomógł: 3 Dołączył: 28.03.2004 Skąd: Wrocław Ostrzeżenie: (0%) ![]() ![]() |
Formularz zawsze jest w htmlu. PHP może jedynie odebrać dane z niego wysłane i obrobić...
Kod HTML jest fatalny... Zero cudzysłowów, połowa struktury wycięta itd... Zacznij od zrobienia porządku z tym... Nie widzę, żebyś w tym skrypcie odwoływał się do danych wysłanych POST-em. Wszystko do sesji, która na dodatek nie istnieje... |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 20:29 |