<?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[help php....]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, sono un novellino con il php e ho fatto uno script per il controllo delle e.mail ma nn mi funziona la regex che uso con ereg...nessuno sa darmi una mano??</p>
<p dir="auto">$from = $_POST["emailsender"];<br />
if(ereg("^[-<em>a-z0-9][-a-z</em>.0-9]*[^.]@[a-z]+.[a-z][a-z][a-z]?[a-z]?$",$from))<br />
{<br />
$mailsent = mail($to, $subject, $message, $headers);<br />
if ($mailsent)<br />
{	echo "Congratulation! The following message has been sent:</p>
<p dir="auto">";<br />
} else {echo "There was an error...";}<br />
}else {	echo "<strong>The E-MAIL must be in the canonical form (<a href="mailto:example@help.com" rel="nofollow ugc">example@help.com</a>) and must be in LOWER CASE. GO back and re-type the E-MAIL</strong><br />
";</p>
<p dir="auto">solo che se inserisco la e-mail <a href="mailto:ciccio@liber.it" rel="nofollow ugc">ciccio@liber.it</a> mi da in outpu l'else...<br />
nessuno puo aiutrami??<br />
<img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/ad0a1f8d-b404-40e4-a46a-e563b14044da-dho.gif?v=2190ae3dadd" class="not-responsive emoji emoji-customizations emoji--arrabbiato" style="height:1.4em;width:auto;vertical-align:middle" title=":x" alt="" /></p>
]]></description><link>https://dev.connect.gt/topic/9259/help-php</link><generator>RSS for Node</generator><lastBuildDate>Sun, 29 Nov 2026 23:36:36 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/9259.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Apr 2006 14:57:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to help php.... on Tue, 11 Apr 2006 15:32:55 GMT]]></title><description><![CDATA[<p dir="auto">prova con questo:</p>
<pre><code>			   if&amp;#40;eregi&amp;#40;"^&amp;#40;&amp;#91;a-zA-Z0-9_.-&amp;#93;&amp;#41;+@&amp;#40;&amp;#40;&amp;#91;a-zA-Z0-9_-&amp;#93;&amp;#41;+\.&amp;#41;+&amp;#91;a-z&amp;#93;&amp;#123;2,4&amp;#125;$", $To&amp;#41;&amp;#41; 
			   &amp;#123;
					$MAILOK = 1;
			   &amp;#125;
			   else
			   &amp;#123;
					$MAILOK = 0;
			   &amp;#125;
</code></pre>
]]></description><link>https://dev.connect.gt/post/313099</link><guid isPermaLink="true">https://dev.connect.gt/post/313099</guid><dc:creator><![CDATA[k3k]]></dc:creator><pubDate>Tue, 11 Apr 2006 15:32:55 GMT</pubDate></item></channel></rss>