<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[problema su header]]></title><description><![CDATA[<p dir="auto">ciao a tutti, è la prima volta che accedo a questo forum.</p>
<p dir="auto">ho trovato le vostre discussioni su google e le ho trovate molto interessanti.</p>
<p dir="auto">ho un problema:</p>
<p dir="auto">nel file che posto di seguito, nel case: modifica, dopo aver fatto le modifiche vorrei che mi riportasse alla pagina formliste.php invece non lo fà.sto sbagliano qcosa?</p>
<p dir="auto">ciao e grazie a tutti</p>
<pre><code>&lt;?php
//Includo i file per la connessione
//e per la verifica Utente
require_once('connessione.php');
require_once('verificalogin.php');
?&gt;
&lt;head&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;p&gt;&lt;strong&gt;MODFICA IL NOME DEL GRUPPO&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;
  
  &lt;?php


if(IsSet($_SESSION['utenteM'])){
    //echo "&lt;p&gt;Benvenuto tutorutente: ".@$_SESSION['utenteM'][0];

}else
{
    echo "errore";
    
}


$user=$_SESSION['utenteM'][0];
//echo $user;


switch ($_GET['action']) {

case "modifica": 

     $nuovonomegruppo = $_POST['nome'];
     $idlist = $_POST['idlist'];
     
     $strSQL = "UPDATE liste SET nome='$nuovonomegruppo' WHERE idlista='$idlist'"; 
     mysql_query($strSQL);
     
    @header ("Location: formliste.php"); 
    exit;    
    
     break; 
    
    
    
    
    
    
    default: 
       
     $query1 = "SELECT * FROM utente WHERE username = '$user'"; 
     $result1 = mysql_query($query1) or die("Errore nella query1:".mysql_error()); 
     $row = mysql_fetch_assoc($result1); 
     $idutente = $row['idutente'];
    // echo  $idutente;


//$query ="Select * from liste where idlista = $_GET[idlista]"; 
// posso anche usar questa 
$query ="Select * from liste where idlista = '$_REQUEST[idlista]'"; 

$idlist= $_REQUEST[idlista];
//echo $idlist;


$ris=mysql_query($query) or die("Errore nella query:".mysql_error());

$resrow = mysql_fetch_array($ris);

$nome=$resrow[1];


echo '  
&lt;form action="formmodificanomegruppo.php?action=modifica  " method="post" &gt;

  &lt;p&gt;nome gruppo
    &lt;input name="nome" value='.$nome.' type="text" /&gt;
&lt;/p&gt;&lt;input name="idlist" type="hidden" value='.$idlist.'"&gt;
  &lt;p&gt;
    &lt;input name="salva" type="submit" value="salva modifiche"/&gt;
  &lt;/p&gt;
&lt;/form&gt;';
    

break;

 }
 
 ?&gt;
    
    
    
    

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/21828/problema-su-header</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 16:10:24 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/21828.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Nov 2006 09:21:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problema su header on Thu, 23 Nov 2006 11:00:42 GMT]]></title><description><![CDATA[<p dir="auto">mi da questo errore</p>
<p dir="auto"><strong>Parse error</strong>:  parse error, unexpected T_BREAK, expecting ',' or ';' in <strong>C:\xampp\htdocs\componente\formmodificanomegruppo.php</strong> on line <strong>46</strong></p>
<p dir="auto">[code]<br />
&lt;?php<br />
//Includo i file per la connessione<br />
//e per la verifica Utente<br />
require_once('connessione.php');<br />
require_once('verificalogin.php');<br />
?&gt;</p>
<p dir="auto">&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;/head&gt;</p>
<p dir="auto">&lt;body&gt;<br />
&lt;?php</p>
<p dir="auto">if(IsSet($_SESSION['utenteM'])){<br />
//echo "&lt;p&gt;Benvenuto tutorutente: ".@$_SESSION['utenteM'][0];</p>
<p dir="auto">}else<br />
{<br />
echo "errore";</p>
<p dir="auto">}<br />
$user=$_SESSION['utenteM'][0];</p>
<p dir="auto">switch ($_REQUEST['action']) {</p>
<p dir="auto">case "modifica":</p>
<pre><code> $nuovonomegruppo = $_REQUEST['nome'];
 $idlist = $_REQUEST['idlist'];
 
 $query = "UPDATE liste SET nome='$nuovonomegruppo' WHERE idlista='$idlist'"; 
 mysql_query($query) or die("Errore nella query1:".mysql_error()); 
</code></pre>
<p dir="auto">echo'<br />
&lt;SCRIPT LANGUAGE="JavaScript"&gt;</p>
<p dir="auto">location="<a href="http://localhost/componente/formliste.php" rel="nofollow ugc">http://localhost/componente/formliste.php</a>";</p>
<p dir="auto">&lt;/script&gt;;'</p>
<pre><code> break; 

default: 
   
 $query1 = "SELECT * FROM utente WHERE username = '$user'"; 
 $result1 = mysql_query($query1) or die("Errore nella query1:".mysql_error()); 
 $row = mysql_fetch_assoc($result1); 
 $idutente = $row['idutente'];
</code></pre>
<p dir="auto">$query ="Select * from liste where idlista = '$_REQUEST[idlista]'";</p>
<p dir="auto">$idlist= $_REQUEST[idlista];<br />
$ris=mysql_query($query) or die("Errore nella query:".mysql_error());<br />
$resrow = mysql_fetch_array($ris);<br />
$nome=$resrow[1];</p>
<p dir="auto">echo '<br />
&lt;form action="formmodificanomegruppo.php?action=modifica" method="post" &gt;</p>
<p dir="auto">&lt;p&gt;nome gruppo&lt;input name="nome" value='.$nome.' type="text" /&gt;<br />
&lt;input name="action" type="hidden" value='.modifica.'&gt;<br />
&lt;/p&gt;&lt;input name="idlist" type="hidden" value='.$idlist.'"&gt;<br />
&lt;p&gt;<br />
&lt;input name="salva" type="submit" value="salva modifiche"/&gt;<br />
&lt;/p&gt;<br />
&lt;/form&gt;';</p>
<p dir="auto">break;</p>
<p dir="auto">}<br />
?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;<br />
[code]</p>
]]></description><link>https://dev.connect.gt/post/400409</link><guid isPermaLink="true">https://dev.connect.gt/post/400409</guid><dc:creator><![CDATA[matti]]></dc:creator><pubDate>Thu, 23 Nov 2006 11:00:42 GMT</pubDate></item><item><title><![CDATA[Reply to problema su header on Thu, 23 Nov 2006 10:00:48 GMT]]></title><description><![CDATA[<p dir="auto">non riesco a capire xche dopo la query UPDATE non parte la query</p>
]]></description><link>https://dev.connect.gt/post/400408</link><guid isPermaLink="true">https://dev.connect.gt/post/400408</guid><dc:creator><![CDATA[matti]]></dc:creator><pubDate>Thu, 23 Nov 2006 10:00:48 GMT</pubDate></item></channel></rss>