🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #49995

Re: href ze zmienną i submitem

#49995
From: BooB
Date: Thu, 22 Apr 2010 10:34
25 lines
1908 bytes
może trochę kodu
pokaz.php
<?
//---   zapisuję uakualnione dane
$query_a="UPDATE listy SET key=$www WHERE id_o=$ii";
echo "<br>$query_a<br>";
$result_a=@mysql_query($query_a);
?>

<form action="show_form.php" name="form" method="GET">

<?
//---- wyswietlam listę z polami input do poprawienia danych
$query="SELECT * FROM listy WHERE name='Common' AND name2='Province'
";
$result=@mysql_query($query);

while($row=mysql_fetch_array($result,MYSQL_NUM)){
$www="lista$row[4]";
echo "<br><input type=\"text\" name=\"www\" value=\"$row[3]\"><a href=
\"javascript:document.form.submit();\">aktualizuj</a>";
//-- jak przekazać aby ten a nie inny rekord został zaktualizowany??
}
?>
</form>
Technical Details
Message-ID: <40adea79-bf15-473c-878a-c7a0db86dc13@11g2000yqr.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!postnews.google.com!11g2000yqr.googlegroups.com!not-for-mail
References: <4b11bfb7-fe71-412a-bf79-b5603d8c10c6@j17g2000yqa.googlegroups.com> <5b29dffb-903e-4196-9347-74ac3ea0d532@r27g2000yqn.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!fu-berlin.de!postnews.google.com!11g2000yqr.googlegroups.com!not-for-mail
From: BooB <max-in@wp.pl>
Newsgroups: pl.comp.lang.javascript
Subject: Re: href ze zmienną i submitem
Date: Thu, 22 Apr 2010 03:34:18 -0700 (PDT)
Organization: http://groups.google.com
Lines: 26
Message-ID: <40adea79-bf15-473c-878a-c7a0db86dc13@11g2000yqr.googlegroups.com>
References: <4b11bfb7-fe71-412a-bf79-b5603d8c10c6@j17g2000yqa.googlegroups.com>  <5b29dffb-903e-4196-9347-74ac3ea0d532@r27g2000yqn.googlegroups.com>
NNTP-Posting-Host: 178.36.7.94
Mime-Version: 1.0
X-Trace: posting.google.com 1271932458 26560 127.0.0.1 (22 Apr 2010 10:34:18 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 22 Apr 2010 10:34:18 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: 11g2000yqr.googlegroups.com; posting-host=178.36.7.94;  posting-account=0PweLwoAAAD7u_TEvl7sl1V26gMlfF37
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2)  Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit