Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
$sql = "UPDATE `profil` SET `profil_mb` = '".$_POST['profil_hptwo']."' WHERE `id` = '".$_SESSION['id']."'";
<? session_start(); ?>
<table width="641" height="121" border="0" cellpadding="0" cellspacing="0" class="text">
<tr>
<td height="29" background="img/c1.jpg"><strong> Test-Seite » Profil bearbeiten</strong></td>
</tr>
<tr>
<td background="img/c2.jpg"><br>
<table width="641" border="0" cellpadding="0" cellspacing="0" class="text">
<tr>
<td width="16"> </td>
<td width="121"><div align="center"><a href="index.php?section=editprofil&change=personal"><strong>»</strong> Persönliches</a> </div></td>
<td width="121"><div align="center"><a href="index.php?section=editprofil&change=contact"><strong>»</strong> Kontakt</a></div></td>
<td width="121"><div align="center"><a href="index.php?section=editprofil&change=favourites"><strong>»</strong> Favoriten</a></div></td>
<td width="121"><div align="center"><a href="index.php?section=editprofil&change=hardware"><strong>»</strong> Hardware</a></div></td>
<td width="121"><div align="center"><a href="index.php?section=editprofil&change=photo"><strong>»</strong> Foto</a></div></td>
<td width="16"> </td>
</tr>
</table>
<br>
<table width="641" border="0" cellpadding="0" cellspacing="0" class="text">
<tr>
<td width="16"> </td>
<td><center>
<?
if($_POST['Submit'] == "Aktualisieren")
{
$sql = "UPDATE `profil` SET `profil_hptwo` = '".$_POST['profil_hptwo']."' WHERE `id` = '".$_SESSION['id']."'";
echo "<br>";
echo "Porfil aktualisiert!";
echo "<br>";
echo "<br>";
}
mysql_connect(localhost, ***, ***);
mysql_select_db(usr_web128_1);
$query = mysql_query("SELECT * FROM profil WHERE id='".$_SESSION['id']."'");
while($row = mysql_fetch_array($query))
if($change == "personal")
{
echo "<form action=\"index.php?section=editprofil\" method=\"post\" name=\"profil\">";
echo "<br>";
echo "<table width=\"534\" border=\"0\" align=\"center\ cellpadding=\"0\" cellspacing=\"0\" class=\"text\">";
echo " <tr>";
echo " <td width=\"197\"><strong>Nickname »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_nick\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_nick']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td width=\"337\"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Vorname »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_nick\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_name']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Nachname »</strong></td>";
echo " <td><input name=\"profil_lastname\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_lastname']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Geschlecht »</strong></td>";
echo " <td><input name=\"profil_sex\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_sex']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Geburtstag »</strong></td>";
echo " <td><input name=\"profil_bd\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_bd']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Wohnort »</strong></td>";
echo " <td><input name=\"profil_city\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_city']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Nationalität »</strong></td>";
echo " <td> <input name=\"profil_nat\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_nat']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Selbstbeschreibung »</strong></td>";
echo " <td> <input name=\"profil_aboutme\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_aboutme']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Motto »</strong></td>";
echo " <td> <input name=\"profil_motto\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_motto']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan=\"2\"><div align=\"center\">";
echo " <input type=\"submit\" name=\"Submit\" value=\"Aktualisieren\" class=\"text\">";
echo " </div></td>";
echo " </tr>";
echo "</table>";
echo "<br>";
echo "</form>";
}
mysql_connect(localhost, ***, ***);
mysql_select_db(usr_web128_1);
$query = mysql_query("SELECT * FROM profil WHERE id='".$_SESSION['id']."'");
while($row = mysql_fetch_array($query))
if($change == "contact")
{
echo "<form action=\"index.php?section=editprofil\" method=\"post\" name=\"profil\">";
echo "<br>";
echo "<table width=\"534\" border=\"0\" align=\"center\ cellpadding=\"0\" cellspacing=\"0\" class=\"text\">";
echo " <tr>";
echo " <td width=\"197\"><strong>ICQ-Nummer »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_icq\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_icq']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td width=\"337\"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>MSN-Adresse »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_msn\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_msn']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>AIM-Name »</strong></td>";
echo " <td><input name=\"profil_aim\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_aim']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>YIM-Name »</strong></td>";
echo " <td><input name=\"profil_yim\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_yim']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>eMail-Adresse »</strong></td>";
echo " <td><input name=\"profil_mail\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_mail']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Homepage #1 »</strong></td>";
echo " <td><input name=\"profil_hpone\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_hpone']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Homepage #2 »</strong></td>";
echo " <td><input name=\"profil_hptwo\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_hptwo']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan=\"2\"><div align=\"center\">";
echo " <input type=\"submit\" name=\"Submit\" value=\"Aktualisieren\" class=\"text\">";
echo " </div></td>";
echo " </tr>";
echo "</table>";
echo "<br>";
echo "</form>";
}
mysql_connect(localhost, ***, ***);
mysql_select_db(usr_web128_1);
$query = mysql_query("SELECT * FROM profil WHERE id='".$_SESSION['id']."'");
while($row = mysql_fetch_array($query))
if($change == "favourites")
{
echo "<form action=\"index.php?section=editprofil\" method=\"post\" name=\"profil\">";
echo "<br>";
echo "<table width=\"534\" border=\"0\" align=\"center\ cellpadding=\"0\" cellspacing=\"0\" class=\"text\">";
echo " <tr>";
echo " <td width=\"197\"><strong>Spiel »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_game\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_game']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td width=\"337\"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Waffe »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_weapon\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_weapon']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Karte(n) »</strong></td>";
echo " <td> <input name=\"profil_map\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_map']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Modifikation »</strong></td>";
echo " <td> <input name=\"profil_mod\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_mod']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Essen »</strong></td>";
echo " <td><input name=\"profil_food\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_food']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Trinken »</strong></td>";
echo " <td><input name=\"profil_drink\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_drink']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Musik »</strong></td>";
echo " <td><input name=\"profil_music\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_music']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Film »</strong></td>";
echo " <td><input name=\"profil_movie\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_movie']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Tier »</strong></td>";
echo " <td><input name=\"profil_animal\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_animal']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan=\"2\"><div align=\"center\">";
echo " <input type=\"submit\" name=\"Submit\" value=\"Aktualisieren\" class=\"text\">";
echo " </div></td>";
echo " </tr>";
echo "</table>";
echo "<br>";
echo "</form>";
}
mysql_connect(localhost, ***, ***);
mysql_select_db(usr_web128_1);
$query = mysql_query("SELECT * FROM profil WHERE id='".$_SESSION['id']."'");
while($row = mysql_fetch_array($query))
if($change == "hardware")
{
echo "<form action=\"index.php?section=editprofil\" method=\"post\" name=\"profil\">";
echo "<br>";
echo "<table width=\"534\" border=\"0\" align=\"center\ cellpadding=\"0\" cellspacing=\"0\" class=\"text\">";
echo " <tr>";
echo " <td width=\"197\"><strong>CPU »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_cpu\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_cpu']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td width=\"337\"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Monitor »</strong></td>";
echo " <td width=\"337\"><input name=\"profil_monitor\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_monitor']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Grafikkarte »</strong></td>";
echo " <td><input name=\"profil_graphic\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_graphic']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Mainboard »</strong></td>";
echo " <td><input name=\"profil_mb\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_mb']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Festplatte »</strong></td>";
echo " <td><input name=\"profil_hdd\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_hdd']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Arbeitsspeicher »</strong></td>";
echo " <td><input name=\"profil_ram\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_ram']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Maus »</strong></td>";
echo " <td><input name=\"profil_mouse\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_mouse']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Tastatur »</strong></td>";
echo " <td><input name=\"profil_keyboard\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_keyborad']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Verbindung (Provider) »</strong></td>";
echo " <td><input name=\"profil_connection\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_connection']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan=\"2\"><div align=\"center\">";
echo " <input type=\"submit\" name=\"Submit\" value=\"Aktualisieren\" class=\"text\">";
echo " </div></td>";
echo " </tr>";
echo "</table>";
echo "<br>";
echo "</form>";
}
mysql_connect(localhost, ***, ***);
mysql_select_db(usr_web128_1);
$query = mysql_query("SELECT * FROM profil WHERE id='".$_SESSION['id']."'");
while($row = mysql_fetch_array($query))
if($change == "photo")
{
echo "<form action=\"index.php?section=editprofil\" method=\"post\" name=\"profil\">";
echo "Foto";
}
mysql_connect(localhost, ***, ***);
mysql_select_db(usr_web128_1);
$query = mysql_query("SELECT * FROM profil WHERE id='".$_SESSION['id']."'");
while($row = mysql_fetch_array($query))
if($change == "")
{
echo "<form action=\"index.php?section=editprofil\" method=\"post\" name=\"profil\">";
echo "<br>";
echo "<table width=\"534\" border=\"0\" align=\"center\ cellpadding=\"0\" cellspacing=\"0\" class=\"text\">";
echo " <tr>";
echo " <td width=\"197\"><strong>Nickname »</strong></td>";
echo " <td width=\"337\"> <input name=\"profil_nick\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_nick']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td width=\"337\"> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Vorname »</strong></td>";
echo " <td width=\"337\"> <input name=\"profil_nick\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_name']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Nachname »</strong></td>";
echo " <td> <input name=\"profil_lastname\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_lastname']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Geschlecht »</strong></td>";
echo " <td> <input name=\"profil_sex\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_sex']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Geburtstag »</strong></td>";
echo " <td><input name=\"profil_bd\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_bd']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Wohnort »</strong></td>";
echo " <td><input name=\"profil_city\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_city']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Nationalität »</strong></td>";
echo " <td> <input name=\"profil_nat\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_nat']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Selbstbeschreibung »</strong></td>";
echo " <td> <input name=\"profil_aboutme\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_aboutme']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td><strong>Motto »</strong></td>";
echo " <td> <input name=\"profil_motto\" type=\"text\" size=\"40\" class=\"text\" value=\"".$row['profil_motto']."\"></td>";
echo " </tr>";
echo " <tr>";
echo " <td> </td>";
echo " <td> </td>";
echo " </tr>";
echo " <tr>";
echo " <td colspan=\"2\"><div align=\"center\">";
echo " <input type=\"submit\" name=\"Submit\" value=\"Aktualisieren\" class=\"text\">";
echo " </div></td>";
echo " </tr>";
echo "</table>";
echo "<br>";
echo "</form>";
}
?>
</center></td>
<td width="16"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="29" background="img/c3.jpg"></td>
</tr>
</table>