• Vote in May Mapping Competition to select a winner!
  • There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

(PHP) I need log in for look content. (Solved)

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Best answers
0
Reaction score
12
Location
Venezuela
How function I need to have for need log in with my account for look the content?

Look the picture.

Code:
<?PHP
$main_content .= '
         <h4 align="left">Costos de puntos por Bolivares. (Venezuela)</h4>
          <div align="left">
            <table width="200" border="1">
              <tr>
                <th scope="col">Bolivar.F</th>
                <th scope="col">Puntos</th>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
              </tr>
              <tr>
                <td>10</td>
                <td>10</td>
              </tr>
              <tr>
                <td>50</td>
                <td>50</td>
              </tr>
              <tr>
                <td>100</td>
                <td>100</td>
              </tr>
              <tr>
            </table>
          </div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Fornmulario de Contactos por neothek.com</title>
</head>

<body>
<h3>Formulario Para Donar Por Tarjetas Telefonicas (SOLO MOVILNET)</h3>
<form id="form1" name="form1" method="post" action="procesar.php">
  <label> Ingrese el nombre de su CHART <br />
  <input name="nombre" type="text" id="nombre" />
  <br />
  </label>
  <p>Su direcci&oacute;n Email<br />
    <input name="email" type="text" id="email" />
  </p>
  <p>Fecha Actual <br />
    <input name="telefono" type="text" id="telefono" />
</p>
<label> Codigo De La Tarjeta <br />
  <input name="nombre" type="text" id="nombre" />
  <br />
  </label>  
  <p>Monto De La Tarjeta<br />
    <label>
    <select name="tipo" id="tipo">
      <option value="15 Bsf">15 Bsf</option>
      <option value="25 Bsf">25 Bsf</option>
      <option value="40 Bsf">40 Bsf</option>
      <option value="60 Bsf">60 Bsf</option>
      <option value="100 Bsf">100 Bsf</option>
    </select>
    </label> 
   </p>
  <p>
    <label>Observaciones: (NO ES OBLIGATORIO)<br />
    <textarea name="mensaje" cols="30" rows="3" id="mensaje"></textarea>
    </label>
</p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Enviar Formulario &gt;&gt;" />
    </label>
  </p>
  <p>Formulario de Donaciones (Www.Lithium-Online.Net)<br />
  <p><h2>OJO: Los puntos llegan en un periodo de 0 a 24h como maximo.<br /></h2>
    <br />
    <br />
  </p>
</form>

</body>
</html>';
?>
Dibujo222.JPG
 
Last edited:

SpiderOT

™ツʂριԃҽɾσƚ➽ ٩(•‿•)۶★彡
Joined
Sep 29, 2008
Messages
1,038
Best answers
8
Reaction score
161
Location
Egypt/cairo
try this
PHP:
<?PHP
if($logged) {
$main_content .= '
         <h4 align="left">Costos de puntos por Bolivares. (Venezuela)</h4>
          <div align="left">
            <table width="200" border="1">
              <tr>
                <th scope="col">Bolivar.F</th>
                <th scope="col">Puntos</th>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
              </tr>
              <tr>
                <td>10</td>
                <td>10</td>
              </tr>
              <tr>
                <td>50</td>
                <td>50</td>
              </tr>
              <tr>
                <td>100</td>
                <td>100</td>
              </tr>
              <tr>
            </table>
          </div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Fornmulario de Contactos por neothek.com</title>
</head>

<body>
<h3>Formulario Para Donar Por Tarjetas Telefonicas (SOLO MOVILNET)</h3>
<form id="form1" name="form1" method="post" action="procesar.php">
  <label> Ingrese el nombre de su CHART <br />
  <input name="nombre" type="text" id="nombre" />
  <br />
  </label>
  <p>Su direcci&oacute;n Email<br />
    <input name="email" type="text" id="email" />
  </p>
  <p>Fecha Actual <br />
    <input name="telefono" type="text" id="telefono" />
</p>
<label> Codigo De La Tarjeta <br />
  <input name="nombre" type="text" id="nombre" />
  <br />
  </label>  
  <p>Monto De La Tarjeta<br />
    <label>
    <select name="tipo" id="tipo">
      <option value="15 Bsf">15 Bsf</option>
      <option value="25 Bsf">25 Bsf</option>
      <option value="40 Bsf">40 Bsf</option>
      <option value="60 Bsf">60 Bsf</option>
      <option value="100 Bsf">100 Bsf</option>
    </select>
    </label> 
   </p>
  <p>
    <label>Observaciones: (NO ES OBLIGATORIO)<br />
    <textarea name="mensaje" cols="30" rows="3" id="mensaje"></textarea>
    </label>
</p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Enviar Formulario &gt;&gt;" />
    </label>
  </p>
  <p>Formulario de Donaciones (Www.Lithium-Online.Net)<br />
  <p><h2>OJO: Los puntos llegan en un periodo de 0 a 24h como maximo.<br /></h2>
    <br />
    <br />
  </p>
</form>

</body>
</html>';
}?>
 

Bogart

...has super panda powers
Joined
Jun 21, 2009
Messages
8,009
Best answers
27
Reaction score
537
Location
Panda Land!
try this
PHP:
<?PHP
if($logged) {
$main_content .= '
         <h4 align="left">Costos de puntos por Bolivares. (Venezuela)</h4>
          <div align="left">
            <table width="200" border="1">
              <tr>
                <th scope="col">Bolivar.F</th>
                <th scope="col">Puntos</th>
              </tr>
              <tr>
                <td>1</td>
                <td>1</td>
              </tr>
              <tr>
                <td>10</td>
                <td>10</td>
              </tr>
              <tr>
                <td>50</td>
                <td>50</td>
              </tr>
              <tr>
                <td>100</td>
                <td>100</td>
              </tr>
              <tr>
            </table>
          </div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Fornmulario de Contactos por neothek.com</title>
</head>

<body>
<h3>Formulario Para Donar Por Tarjetas Telefonicas (SOLO MOVILNET)</h3>
<form id="form1" name="form1" method="post" action="procesar.php">
  <label> Ingrese el nombre de su CHART <br />
  <input name="nombre" type="text" id="nombre" />
  <br />
  </label>
  <p>Su dirección Email<br />
    <input name="email" type="text" id="email" />
  </p>
  <p>Fecha Actual <br />
    <input name="telefono" type="text" id="telefono" />
</p>
<label> Codigo De La Tarjeta <br />
  <input name="nombre" type="text" id="nombre" />
  <br />
  </label>  
  <p>Monto De La Tarjeta<br />
    <label>
    <select name="tipo" id="tipo">
      <option value="15 Bsf">15 Bsf</option>
      <option value="25 Bsf">25 Bsf</option>
      <option value="40 Bsf">40 Bsf</option>
      <option value="60 Bsf">60 Bsf</option>
      <option value="100 Bsf">100 Bsf</option>
    </select>
    </label> 
   </p>
  <p>
    <label>Observaciones: (NO ES OBLIGATORIO)<br />
    <textarea name="mensaje" cols="30" rows="3" id="mensaje"></textarea>
    </label>
</p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Enviar Formulario >>" />
    </label>
  </p>
  <p>Formulario de Donaciones (Www.Lithium-Online.Net)<br />
  <p><h2>OJO: Los puntos llegan en un periodo de 0 a 24h como maximo.<br /></h2>
    <br />
    <br />
  </p>
</form>

</body>
</html>';
}?>
I thought you need an "else" and a /if
Correct me if im wrong tho.
 
OP
bolero

bolero

MikeHere
Joined
Apr 13, 2009
Messages
1,146
Best answers
0
Reaction score
12
Location
Venezuela
Fixed.

<?PHP
if(!$logged)
$main_content .= 'Please enter your account name and your password.<br/><a href="?subtopic=createaccount" >Create an account</a> if you do not have one yet.<br/><br/><form action="?subtopic=donartarjeta" method="post" ><div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Account Login</div> <span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" ><tr><td class="LabelV" ><span >Account Name:</span></td><td style="width:100%;" ><input type="password" name="account_login" SIZE="10" maxlength="10" ></td></tr><tr><td class="LabelV" ><span >Password:</span></td><td><input type="password" name="password_login" size="30" maxlength="29" ></td></tr> </table> </div> </table></div></td></tr><br/><table width="100%" ><tr align="center" ><td><table border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></td><tr></form></table></td><td><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=lostaccount" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Account lost?" alt="Account lost?" src="'.$layout_name.'/images/buttons/_sbutton_accountlost.gif" ></div></div></td></tr></form></table></td></tr></table>';
else
{
$main_content .= '
<h4 align="left">Costos de puntos por Bolivares. (Venezuela)</h4>
<div align="left">
<table width="200" border="1">
<tr>
<th scope="col">Bolivar.F</th>
<th scope="col">Puntos</th>
</tr>
<tr>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>10</td>
<td>10</td>
</tr>
<tr>
<td>50</td>
<td>50</td>
</tr>
<tr>
<td>100</td>
<td>100</td>
</tr>
<tr>
</table>
</div>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Fornmulario de Contactos por neothek.com</title>
</head>

<body>
<h3>Formulario Para Donar Por Tarjetas Telefonicas (SOLO MOVILNET)</h3>
<form id="form1" name="form1" method="post" action="procesar.php">
<label> Ingrese el nombre de su CHART <br />
<input name="nombre" type="text" id="nombre" />
<br />
</label>
<p>Su direcci&oacute;n Email<br />
<input name="email" type="text" id="email" />
</p>
<p>Fecha Actual <br />
<input name="telefono" type="text" id="telefono" />
</p>
<label> Codigo De La Tarjeta Nro 1 <br />
<input name="tarjeta" type="text" id="tarjeta" />
<br />
</label>
<label> Codigo De La Tarjeta Nro 2 SOLO SI TIENES MAS DE 2 TARJETAS<br />
<input name="tarjeta2" type="text" id="tarjeta2" />
<br />
</label>
<p>Monto De La Tarjeta Nro 1<br />
<label>
<select name="tipo" id="tipo">
<option value="15 Bsf">15 Bsf</option>
<option value="25 Bsf">25 Bsf</option>
<option value="40 Bsf">40 Bsf</option>
<option value="60 Bsf">60 Bsf</option>
<option value="100 Bsf">100 Bsf</option>
</select>
</label>
</p>
<p>Monto De La Tarjeta Nro 2 SOLO SI TIENES MAS DE 2 TARJETAS<br />
<label>
<select name="tipo2" id="tipo2">
<option value="15 Bsf">15 Bsf</option>
<option value="25 Bsf">25 Bsf</option>
<option value="40 Bsf">40 Bsf</option>
<option value="60 Bsf">60 Bsf</option>
<option value="100 Bsf">100 Bsf</option>
</select>
</label>
</p>
<p>
<label>Observaciones: (NO ES OBLIGATORIO)<br />
<textarea name="mensaje" cols="30" rows="3" id="mensaje"></textarea>
</label>
</p>
<p>
<label>
<input type="submit" name="Submit" value="Enviar Formulario &gt;&gt;" />
</label>
</p>
<p>Formulario de Donaciones (Www.Lithium-Online.Net)<br />
<p><h2>OJO: Los puntos llegan en un periodo de 0 a 24h como maximo.<br /></h2>
<br />
<br />
</p>
</form>

</body>
</html>';
}
?>
 
Top