<?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 switch]]></title><description><![CDATA[<p dir="auto">ciao ragazzi xche non mi entra nel case: modifica? non mi mdofica i dati</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;html&gt;
&lt;head&gt;
&lt;/head&gt;

&lt;body&gt;
  &lt;p align="center"&gt;&lt;strong&gt;MODIFICA I DATI DEL TUO CONTATTO &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];
$idutente = $_REQUEST[idutente];
echo $idutente;



switch ($_REQUEST['action']) {

case "modifica": 

$idlista = $_REQUEST[idlista];

echo $idlista;

    
     $nome = $_POST['nome'];
     $cognome = $_POST['cognome'];
      $cognome = $_POST['cellulare'];
     
     $query = "UPDATE utente SET nome='$nome',cognome='$cognome', cellulare='$cellulare' WHERE idutente='$idutente'"; 
     mysql_query($query) or die("Errore nella query1:".mysql_error()); 



    echo'&lt;SCRIPT LANGUAGE="JavaScript"&gt;location="http://localhost/componente/formcontatti.php?idlista='.$idlista.'";&lt;/script&gt;';



     break; 

    default: 
    
     $query = "SELECT * FROM utente WHERE idutente = '$idutente'"; 
     $result1 = mysql_query($query) or die("Errore nella query:".mysql_error());  
     $riga = mysql_fetch_array($result1); 
     $nome = $riga['nome'];
    $cognome = $riga['cognome'];
    $cellulare = $riga['cellulare'];
    
    echo '
    
&lt;FORM NAME="" action="modificacontatto.php" method="post" &gt;
&lt;div align="center"&gt;
  &lt;table width="540" height="152" border="0" bordercolor="#99CC33"&gt;
   &lt;input name="action" type="hidden" value='.modifica.'&gt;
    &lt;tr&gt;
      &lt;td width="75" height="35"&gt;nome&lt;/td&gt;
      &lt;td width="155"&gt;&lt;input type="text" name="nome" value='.$nome.'&gt;&lt;/td&gt;
      &lt;td&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td height="33"&gt;Cognome:&lt;/td&gt;
      &lt;td colspan="2"&gt;&lt;input type="text" name="cognome" value='.$cognome.'&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td height="33"&gt;Cellulare&lt;/td&gt;
      &lt;td colspan="2"&gt;&lt;input name="cellulare" type="text" size="30" value='.$cellulare.'&gt;
        
        &lt;/td&gt;
    &lt;/tr&gt;
    

   &lt;td height="76" colspan="2" align="center"&gt;&lt;input type="submit" value="Invia"&gt;&lt;/td&gt;
 &lt;/tr&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;/form&gt;';

break;

 }
?&gt;
  &lt;/p&gt;
  &lt;p&gt;&amp;nbsp;    &lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
]]></description><link>https://dev.connect.gt/topic/22195/problema-switch</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 06:46:20 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/22195.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Nov 2006 17:06:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problema switch on Mon, 27 Nov 2006 20:24:10 GMT]]></title><description><![CDATA[<p dir="auto">ciao spaccioman grazie mille.</p>
]]></description><link>https://dev.connect.gt/post/402048</link><guid isPermaLink="true">https://dev.connect.gt/post/402048</guid><dc:creator><![CDATA[matti]]></dc:creator><pubDate>Mon, 27 Nov 2006 20:24:10 GMT</pubDate></item><item><title><![CDATA[Reply to problema switch on Mon, 27 Nov 2006 19:11:54 GMT]]></title><description><![CDATA[<p dir="auto">Linea 27 $_REQUEST[idutente] invece $_REQUEST['idutente']<br />
Linea 36 stesso errore, non so se sia quella il motivo, comunque prova!</p>
]]></description><link>https://dev.connect.gt/post/402046</link><guid isPermaLink="true">https://dev.connect.gt/post/402046</guid><dc:creator><![CDATA[spaccioman]]></dc:creator><pubDate>Mon, 27 Nov 2006 19:11:54 GMT</pubDate></item></channel></rss>