Има ли грешка в кода

Post Reply
pumata
Нов
Нов
Posts: 199
Joined: Sat Mar 27, 2010 12:18 pm
Contact:

Има ли грешка в кода

Post by pumata » Thu Mar 27, 2014 11:21 am

Здравейте, бутона регистрация не работи, има ли някаква грешка в кода?

Code: Select all

<TR><TD height="19" align="center">
		<INPUT type=submit class='btn' value=' Вход ' onclick='this.blur&#40;&#41;'></TD></TR>
		<TR><TD align="center">
        <INPUT type=button class='btn' value=' Регистрация ' window.location= "register.php"'>
		
		</TD></TR></TABLE></TD>

User avatar
anonimen
Web-tourist
Web-tourist
Posts: 1580
Joined: Mon Jun 11, 2012 6:07 pm
Answers: 163
Location: Parse error: unexpected "}" in /home/index.php on line 26

Post by anonimen » Thu Mar 27, 2014 11:56 am

В html просто няма атрибут window.location.
Може би имаш предвид това:
[html]<INPUT type="button" class="btn" value="Регистрация" onclick="window.location= 'register.php'">
[/html]

pumata
Нов
Нов
Posts: 199
Joined: Sat Mar 27, 2010 12:18 pm
Contact:

Post by pumata » Thu Mar 27, 2014 11:58 am

Да вероятно там има грешка

User avatar
anonimen
Web-tourist
Web-tourist
Posts: 1580
Joined: Mon Jun 11, 2012 6:07 pm
Answers: 163
Location: Parse error: unexpected "}" in /home/index.php on line 26

Post by anonimen » Thu Mar 27, 2014 7:48 pm

pumata wrote:Да вероятно там има грешка
E добре де, поправи го и ще работи!!! :?:

Post Reply