<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Zespół Szkół i Placówek Oświatowych w Barlinku — PHP - hasło]]></title>
		<link>https://ti.dxe.pl/forum/viewtopic.php?id=1220</link>
		<atom:link href="https://ti.dxe.pl/forum/extern.php?action=feed&amp;tid=1220&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Najświeższe odpowiedzi w PHP - hasło.]]></description>
		<lastBuildDate>Wed, 10 Dec 2025 09:56:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[PHP - hasło]]></title>
			<link>https://ti.dxe.pl/forum/viewtopic.php?pid=1375#p1375</link>
			<description><![CDATA[<p>&lt;!DOCTYPE html&gt;<br />&lt;html lang=&quot;en&quot;&gt;<br />&lt;head&gt;<br />&nbsp; &nbsp; &lt;meta charset=&quot;UTF-8&quot;&gt;<br />&nbsp; &nbsp; &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br />&nbsp; &nbsp; &lt;title&gt;Document&lt;/title&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&nbsp; &nbsp; &lt;form action=&quot;&quot; method=&quot;post&quot;&gt;<br />&nbsp; &nbsp; &lt;p&gt;Imię: &lt;input type=&quot;text&quot; name=&quot;imie&quot; value=&quot;Jan&quot;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &lt;p&gt;Nazwisko: &lt;input type=&quot;text&quot; name=&quot;nazwisko&quot; value=&quot;Nowak&quot;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &lt;p&gt;&lt;input type=&quot;checkbox&quot; name=&quot;haslo&quot; value=&quot;1&quot; checked&gt; Wygeneruj hasło&lt;/p&gt;<br />&nbsp; &nbsp; &lt;p&gt;&lt;input type=&quot;submit&quot; value=&quot;Inicjały&quot;&gt;&lt;/p&gt;<br />&nbsp; &nbsp; &lt;/form&gt;</p><p>&nbsp; &nbsp; &lt;?php<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!empty($_POST))<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&#039;imie&#039;])) $imie=$_POST[&#039;imie&#039;]; else $imie=&quot;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&#039;nazwisko&#039;])) $nazwisko=$_POST[&#039;nazwisko&#039;]; else $nazwisko=&quot;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (isset($_POST[&#039;haslo&#039;])) $haslo=(int)$_POST[&#039;haslo&#039;]; else $haslo=0;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $in=$imie[0].$nazwisko[0];<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // substr($tekst, 0, 7);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;h1&gt;&quot;.$in.&quot;&lt;h1&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($haslo)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $losuj=50+rand(0, 49);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $male=strtolower($in);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;h1&gt;&quot;.$in.$losuj.$male.&quot;&lt;/h1&gt;&quot;;&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; ?&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Wed, 10 Dec 2025 09:56:14 +0000</pubDate>
			<guid>https://ti.dxe.pl/forum/viewtopic.php?pid=1375#p1375</guid>
		</item>
	</channel>
</rss>
