please help !!!

This is a discussion on please help !!! within the PHP Language forums, part of the PHP Programming Forums category; Rejestracja.php ------------------ <HTML> <head> <meta http-equiv="Content-Language" content="pl"&...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-15-2004
Fragles
 
Posts: n/a
Default please help !!!

Rejestracja.php
------------------

<HTML>
<head>
<meta http-equiv="Content-Language" content="pl">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Rejestracja</title>
</head>

<body link="#FFFF00" text="#FF0000" bgcolor="#000000">

<?php

IF (isset($_POST['submit']))
{
$message = NULL;

IF (empty($_POST['email'])) {
$message = '<p>zly email</p>';
$em = FALSE;
}
ELSE {
$em = $_POST['email'];
}

IF (empty($_POST['password'])) {
$message = '<p>zle haslo</p>';
$pa = FALSE;
}
ELSE {
$pa = $_POST['password'];
}

IF (empty($_POST['nick'])) {
$message = '<p>zly nick</p>';
$ni = FALSE;
}
ELSE {
$ni = $_POST['nick'];
}

$su = $_POST['subskrypcja'];


if ($em && $pa && $ni && $pl) {
$sql = mysql_connect();
mysql_select_db("mystera");
$query = "INSERT INTO users (username, email, password, subskrypcja, data)
values ('$ni','$em',password('$pa'),'$su',now())";
$result = $mysql_query($query);
if ($result) {
echo '<p><b>Zostales zarejestrowany ';
exit();
}
else {
echo '<p><b>Blad '. mysql_error(). '</b></p>';
}
mysql_close();
}
else {
echo '<p><b>Wype³nij formularz !</b></p>';
}

if (isset($message)) {
echo $message;
}

?>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
</p>

<form method="POST" action="rejestracja.php" webbot-action="--WEBBOT-SELF--"
onSubmit="location.href='rejestracja.php';return false;" webbot-onSubmit>

<input TYPE="hidden" NAME="VTI-GROUP"
VALUE="0"><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="email" size="53" style="color: #FFFF00; font-size:
12pt; border-style: solid; border-width: 1; background-color:
#000000">&nbsp; adres
e-mail</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="password" name="password" size="20" style="color: #FFFF00;
font-size: 12pt; border: 1px solid #FFFF00; background-color: #000000"
maxlength="20">&nbsp; has³o</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="nick" size="35" style="color: #FFFF00; font-size:
12pt; border: 1px solid #FFFF00; background-color: #000000"
maxlength="35">&nbsp;imiê /
nick</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="subskrypcja" value="ON" checked>
Subskrypcja&nbsp; - chcê otrzymywaæ ciekawe
informacje</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;
</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Prze¶lij" name="submit" style="font-size: 12pt;
border-style: solid; border-width:
1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
</p>
<p>&nbsp;</p>
</form>
</body>
</HTML>
---------------

I got message
Parse error: parse error in c:\apache\htdocs\strona\mystera\rejestracja.php
on line 88

At line 88 is </HTML>

What's wrong ??????????

Thanks !



Reply With Quote
  #2 (permalink)  
Old 12-15-2004
Thomas
 
Posts: n/a
Default Re: please help !!!

*Fragles wrote:

> I got message
> Parse error: parse error in
> c:\apache\htdocs\strona\mystera\rejestracja.php
> on line 88
>
> At line 88 is </HTML>
>
> What's wrong ??????????



This:

if (isset($message)) {
echo $message;
}
?>

should be:

if (isset($message)) {
echo $message;
}
}
?>



--
Thomas

SELECT date FROM wife WHERE bitching = '0' AND sex = '1'
Reply With Quote
  #3 (permalink)  
Old 12-15-2004
mfmilan@gmail.com
 
Posts: n/a
Default Re: please help !!!

That means that you probably forgot } somewhere.

Reply With Quote
  #4 (permalink)  
Old 12-15-2004
Fragles
 
Posts: n/a
Default Re: please help !!!

6 beers for You ! Thanks a lot :)


Uzytkownik "Thomas" <news.thomas@nospam.netcom.no> napisal w wiadomosci
news:opsi2epydvwq9i44@asltsvg002.chc.domain...
> *Fragles wrote:
>
>> I got message
>> Parse error: parse error in
>> c:\apache\htdocs\strona\mystera\rejestracja.php
>> on line 88
>>
>> At line 88 is </HTML>
>>
>> What's wrong ??????????

>
>
> This:
>
> if (isset($message)) {
> echo $message;
> }
> ?>
>
> should be:
>
> if (isset($message)) {
> echo $message;
> }
> }
> ?>
>
>
>
> --
> Thomas
>
> SELECT date FROM wife WHERE bitching = '0' AND sex = '1'



Reply With Quote
  #5 (permalink)  
Old 12-15-2004
mfmilan@gmail.com
 
Posts: n/a
Default Re: please help !!!

That means that you probably forgot } somewhere.

Reply With Quote
  #6 (permalink)  
Old 12-15-2004
Gary L. Burnore
 
Posts: n/a
Default Re: please help !!!

On 15 Dec 2004 12:03:55 -0800, mfmilan@gmail.com wrote:

>That means that you probably forgot } somewhere.


What does?
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one! http://signup.databasix.com
================================================== =========================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0