What's wrong here? Please ...


hi there,

i have say: "show login option if session empty." but, when
use message:

notice: undefined index: mm_username in
c:\inetpub\wwwroot\sincro\members\member-login.php on line 275

line 275 first line of code below. appreciate
your help.

<?php if(strlen($_session['mm_username']) < 1) { ?>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td><h1>login ...</h1>
<p> </p>
<form action="<?php echo $loginformaction; ?>" id="form1"
name="form1" method="post">
<table width="100%" border="0" cellspacing="0"
cellpadding="5">
<tr>
<td align="center"><strong>registered name:
</strong></td>
<td> 
<input name="mem_name" type="text"
id="mem_name" /></td>
</tr>
<tr>
<td align="center"><strong>password:</strong></td>
<td> 
<input name="mem_password" type="password"
id="mem_password" /></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit"
name="submit" value="login" /></td>
</tr>
</table>
</form>
<p>  </p></td>
</tr>
</table>
<?php } ?>

----
regards,
deon

subject line non-helpful
post subject says youe need php help.


"deon" <deonat@sincroremove.co.za> wrote in message
news:e4nis9$q5o$1@forums.macromedia.com...
> hi there,
>
> have say: "show login option if session empty." but, when
> use message:
>
> notice: undefined index: mm_username in
> c:\inetpub\wwwroot\sincro\members\member-login.php on line 275
>
> line 275 first line of code below. appreciate
> help.
>
> <?php if(strlen($_session['mm_username']) < 1) { ?>
> <table width="100%" border="0" cellspacing="0" cellpadding="5">
> <tr>
> <td><h1>login ...</h1>
> <p> </p>
> <form action="<?php echo $loginformaction; ?>" id="form1"
> name="form1" method="post">
> <table width="100%" border="0" cellspacing="0"
> cellpadding="5">
> <tr>
> <td align="center"><strong>registered name:
> </strong></td>
> <td> 
> <input name="mem_name" type="text" id="mem_name"
> /></td>
> </tr>
> <tr>
> <td align="center"><strong>password:</strong></td>
> <td> 
> <input name="mem_password" type="password"
> id="mem_password" /></td>
> </tr>
> <tr>
> <td colspan="2" align="center"><input type="submit"
> name="submit" value="login" /></td>
> </tr>
> </table>
> </form>
> <p>  </p></td>
> </tr>
> </table>
> <?php } ?>
> ----
> regards,
> deon




More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62