Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: html ir php

Parašė zabello· 2008 Kov. 17 10:03:11
#1

kas galetu sudet man du kodus i html ideti php registracija
HTML:
<html>
<head>
<title>SA-MP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#f85802" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center><table id="Table_01" width="568" height="759" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td colspan="3">
         <img src="images/SA-MP_01.gif" width="568" height="198" alt=""></td>
   </tr>
   <tr>
      <td>
         <img src="images/SA-MP_02.gif" width="75" height="228" alt=""></td>
      <td>
         <img src="images/SA-MP_03.gif" width="418" height="228" alt=""></td>
      <td>
         <img src="images/SA-MP_04.gif" width="75" height="228" alt=""></td>
   </tr>
   <tr>
      <td colspan="3">
         <img src="images/SA-MP_05.gif" width="568" height="333" alt=""></td>
   </tr>
</center></table>
</body>
</html>




PHP:
<?php
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
if(iGEUST){
   
//Config
$adminID = '1';
//Config

if(!$puslapis){
opentable('Administratoriu atranka');
echo"

<form name='siustiZem' method='post' action='adminreg.php?puslapis=siusti'>
<table border='0'>
<tr><td><span style='color:#ffffff'>
 U&#0382;pildykite &#0382;emiau esan&#0269;ia lentelæ ir ji bus i&#0353;si&#0371;sta Administracijai.
</td>
<table border='0'>
<tr><td><span style='color:#ffffff'>
Nick:
</td><td>
<input type='text' name='nickas' maxlength='60' class='textbox' style='width:300px;'>
</td></tr><tr><td><span style='color:#ffffff'>
Vardas:
</td><td>
<input type='text' name='vardas' maxlength='60' class='textbox' style='width:300px;'>
</td></tr><tr><td><span style='color:#ffffff'>
E-mail adresas:
</td><td>
<input type='text' name='adresas' maxlength='60' class='textbox' style='width:300px;'>
</td></tr><tr><td><span style='color:#ffffff'>
Skype ID:
</td><td>
<input type='text' name='skype' maxlength='60' class='textbox' style='width:300px;'>
</td></tr><tr><td><span style='color:#ffffff'>
Tavo sugebejimai:
</td><td>
<input type='text' name='eilerastis' maxlength='400' class='textbox' style='width:300px;'>
</td>
</tr><tr><td colspan='2' align='center'><input type='submit' name='haomeris'  style='width:150px' value='Si&#251;sti' class='button'></td></table></form>";
closetable();}


if($puslapis == 'siusti'){
   
   if(empty($nickas)){ $err[]="Ne&#0303;vestas Nickas"; }
   if(empty($vardas)){ $err[]="Ne&#0303;vestas Vardas"; }
   if(empty($adresas)){ $err[]="Ne&#0303;vestas E-pa&#0353;to adresas"; }
   if(empty($skype)){ $err[]="Ne&#0303;vestas Skype ID"; }
   if(empty($eilerastis)){ $err[]="Ne&#0303;vesti Tavo sugebejimai"; }

   
   if (!$err){ 
   $message = '
Nickas: '.$nickas.'\n
Vardas: '.$vardas.'\n
E-pa&#0353;to adresas: '.$adresas.'\n
Skype: '.$skype.'\n
Eil&#0279;ra&#0353;tis: '.$eilerastis.'\n ';

   dbquery("INSERT INTO ".$db_prefix."messages (message_to, message_from, message_subject, message_message, message_smileys, message_read, message_datestamp, message_folder) VALUES('".$adminID."','".$userdata['user_id']."','U&#254;sakyti','".$message."','0','0','".time()."','0')");
   
   opentable('I&#0353;siusta');
   echo"   Anketa priimta ir i&#240;siusta Administratoriams,<br/>
D&#0279;kojame.";
   closetable();
   
   } else {
      opentable('Klaidos');

    for ($i=0;$i<count($err);$i++)  {

     echo "-".$err[$i]."<br/>";           }

     echo'<br/><a href="adminreg.php?">Gr&#0303;&#0382;kite atgal, ir u&#0382;pildykite vis&#224; anket&#224;.</a>';
   closetable();

   }

}
}else{redirect(BASEDIR.'register.php');}



require_once "side_right.php";

require_once "footer.php";

?>




Tas PHP scriptas turi but ant sa-mp3.gif paveiksliuko kitaip sakant sa-mp3.gif turi buti to scripto backgroundu.

Redagavo zabello· 2008 Kov. 17 10:03:33