<?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 registrazione utenti]]></title><description><![CDATA[<p dir="auto">effettuo la registrazione con un username già esistente e mi registra nuovamente...</p>
<p dir="auto">&lt;?php<br />
session_start();<br />
?&gt;<br />
&lt;?<br />
include "config.php";<br />
// inizializza sempre le variabili che usi in uno script<br />
$username="";<br />
$psw="";<br />
$repsw="";<br />
// assegna i valori POSTati a queste variabili hashando la password<br />
$username=$_POST['username'];<br />
$psw=md5($_POST['password']);<br />
$repsw=md5($_POST['repassword']);<br />
$ver = "SELECT * FROM messaggi WHERE username= '$username'";<br />
$tabver = @mysql_query ($ver) or die (mysql_error());<br />
$veruser = mysql_num_rows ($tabver);<br />
if ($username=='' || $psw=='' || $repsw=='')<br />
{<br />
echo '&lt;br&gt;Compila correttamente tutti i campi';<br />
}<br />
else if ($psw !== $repsw)<br />
{<br />
echo "&lt;br&gt;Controllare la password digitata.";<br />
}<br />
else if ($veruser !== 0)<br />
{<br />
echo "&lt;br&gt;L'username richiesto risulta già registrato";<br />
}<br />
else if (eregi("[:,;èéçòà °@#ù§*+^ì'&lt;&gt;?!£$%&amp;/=()]", $username))<br />
{<br />
echo "&lt;br&gt;Il nick contiene caratteri non validi.";<br />
}<br />
else<br />
{</p>
<p dir="auto">$inserimento=mysql_query( "insert into messaggi (username,password,user,gender,date_of_birth,country,test_arousal_photo1,test_valence_photo1 ,test_arousal_photo2,test_valence_photo2,test_arousal_photo3,test_valence_photo3,test_arousal_photo4 ,test_valence_photo4,test_arousal_photo5,test_valence_photo5,test_arousal_photo6,test_valence_photo6 ,test_arousal_photo7,test_valence_photo7,test_arousal_photo8,test_valence_photo8,test_arousal_photo9 ,test_valence_photo9,test_arousal_photo10,test_valence_photo10,date)<br />
values (' $username ',' $psw ',<br />
'" . $_SESSION['user']. "','" . $_SESSION['gender'] . "','" . $_SESSION['year'] . "-" . $_SESSION['month'] . "-" . $_SESSION['day'] . "','" . $_SESSION['country'] . "','" . $_SESSION['test_arousal_photo1'] . "','" . $_SESSION['test_valence_photo1'] . "','" . $_SESSION['test_arousal_photo2'] . "','" . $_SESSION['test_valence_photo2'] . "','" . $_SESSION['test_arousal_photo3'] . "','" . $_SESSION['test_valence_photo3'] . "','" . $_SESSION['test_arousal_photo4'] . "','" . $_SESSION['test_valence_photo4'] . "','" . $_SESSION['test_arousal_photo5'] . "','" . $_SESSION['test_valence_photo5'] . "','" . $_SESSION['test_arousal_photo6'] . "','" . $_SESSION['test_valence_photo6'] . "','" . $_SESSION['test_arousal_photo7'] . "','" . $_SESSION['test_valence_photo7'] . "','" . $_SESSION['test_arousal_photo8'] . "','" . $_SESSION['test_valence_photo8'] . "','" . $_SESSION['test_arousal_photo9'] . "','" . $_SESSION['test_valence_photo9'] . "','" . $_SESSION['test_arousal_photo10'] . "','" . $_SESSION['test_valence_photo10'] . "', now())" ) or die (mysql_error());</p>
<p dir="auto">echo " hai effettuato la registrazione con successo&lt;br&gt;can see the final statistics &lt;a href="finalstat.php"&gt;stat&lt;/a&gt;.";<br />
}<br />
@mysql_close($connection);</p>
<p dir="auto">?&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></description><link>https://dev.connect.gt/topic/69830/problema-registrazione-utenti</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 02:41:15 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/69830.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Apr 2008 22:39:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problema registrazione utenti on Sat, 26 Apr 2008 11:31:59 GMT]]></title><description><![CDATA[<p dir="auto">basta che digito n volte lo stesso username e password e me lo riscrive n volte nel database</p>
]]></description><link>https://dev.connect.gt/post/707288</link><guid isPermaLink="true">https://dev.connect.gt/post/707288</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sat, 26 Apr 2008 11:31:59 GMT</pubDate></item><item><title><![CDATA[Reply to problema registrazione utenti on Sat, 26 Apr 2008 11:30:16 GMT]]></title><description><![CDATA[<p dir="auto">ma 2 o + volte a stessa esecuzione di query?????</p>
]]></description><link>https://dev.connect.gt/post/707285</link><guid isPermaLink="true">https://dev.connect.gt/post/707285</guid><dc:creator><![CDATA[digital.daigor]]></dc:creator><pubDate>Sat, 26 Apr 2008 11:30:16 GMT</pubDate></item><item><title><![CDATA[Reply to problema registrazione utenti on Sat, 26 Apr 2008 11:07:14 GMT]]></title><description><![CDATA[<p dir="auto">perchè anche nel database mi scrive 2 o piu' volte lo stesso utente e la stessa password.<br />
qualche controllo che nn va...eppure mi sembrano giusti</p>
]]></description><link>https://dev.connect.gt/post/707287</link><guid isPermaLink="true">https://dev.connect.gt/post/707287</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sat, 26 Apr 2008 11:07:14 GMT</pubDate></item><item><title><![CDATA[Reply to problema registrazione utenti on Sat, 26 Apr 2008 11:03:53 GMT]]></title><description><![CDATA[<p dir="auto">che query faccio prima?</p>
]]></description><link>https://dev.connect.gt/post/707286</link><guid isPermaLink="true">https://dev.connect.gt/post/707286</guid><dc:creator><![CDATA[giorgiodp]]></dc:creator><pubDate>Sat, 26 Apr 2008 11:03:53 GMT</pubDate></item><item><title><![CDATA[Reply to problema registrazione utenti on Sat, 26 Apr 2008 10:34:23 GMT]]></title><description><![CDATA[<p dir="auto">fai una query prima e se restituisce 1 o + risultati...non fai la 2° e stampi un errore!</p>
]]></description><link>https://dev.connect.gt/post/707284</link><guid isPermaLink="true">https://dev.connect.gt/post/707284</guid><dc:creator><![CDATA[digital.daigor]]></dc:creator><pubDate>Sat, 26 Apr 2008 10:34:23 GMT</pubDate></item></channel></rss>