[Javascript]link als submit doet het niet

Gestart doorJvdw50 reacties298 weergaven

51 berichten · pagina 1 van 4

Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hoi, ik heb een form:

<form id="registreren" name="registreren" method="post">


en ik wil ipv een input submit een link, dus ik googlede dat, en ik kreeg dit

<a id="submit_avatar"  href="#" onClick="document.forms[registreren].submit(); return false" class="button-link">
  <div class="button-container">
  <div class="button-left"></div>
  <div class="button-content">Registreren!</div>
  <div class="button-right"></div>
  </div>
  </a>


let op de onclick. Maar dit werkt nu niet, hoe zou dit komen?

Alvast bedankt!
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is het niet
document.registreren.submit()


?
0
Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Voor welk hotel is het? (retro) emo
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Wouterr schreef:
Voor welk hotel is het? (retro) emo
Niet relevant wink
0
Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wouterr schreef:
Voor welk hotel is het? (retro) emo
fail, het gaat om een fansite niet om een hotel, emo echt dom dat mensen praten terwijl ze er niks af van wetenemoemoemoemo
toevoeging op 5 juli 2012, 21:39:41:
Gamedealer schreef:
Is het niet
document.registreren.submit()


?
werkt ook nietsadley
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Het zou moeten werken. Check je JS-console eens? Vergeet niet de ; wink
0
Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
wat bedoel je met console,
dit heb ik
onClick="document.registreren.submit(); return false"
0
Berichten
473
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Console is dat ding dat bij Chrome te voorschijn komt als je element inspecteren doet ;p Bij FireFox weet ik dat zo niet.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
onClick="document.registreren.submit(); return false;"
0
Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
nog steeds niet:
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
<form id="registreren" name="registreren" method="post"> 
<a id="submit_avatar" href="pagina.php" name="submit" onClick="document.registreren.submit();" class="button-link">lala</a>
</form>


Works like a charm...
0
Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
en nog niet sadley
Spoiler tonen
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);

function[/COLOR] check_email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$in[/COLOR][COLOR= #007700]) {[/COLOR]
  [COLOR= #0000BB]$patroon[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"/^([a-z0-9_-]+.)*[a-z0-9_-]+@([a-z0-9_-]{2,}.)+([a-z0-9_-]{2,})$/i"[/COLOR][COLOR= #007700];[/COLOR]
  [URL="http://www.php.net/return"]return[/URL] [URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$patroon[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$in[/COLOR][COLOR= #007700]);
}[/COLOR]
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel=StyleSheet href="stijl.css" type="text/css" >
</head>
<body>
<div id="habbodesk">
<div id="top"></div>
<div id="midden">

<div id="tekst" style="padding-top: 5px;"><b>Registreren op Habbodesk.net</b>
<div class="tekst2">
Om jullie al iets minder te laten wachten op habbodesk hebben we de registraties geopend, wanneer er problemen zijn, <a href="https://twitter.com/intent/tweet?screen_name=Habbodesk" class="twitter-mention-button" data-lang="nl" data-related="Habbodesk">Tweet naar @Habbodesk</a> 
<div class="line"></div>
[COLOR= #0000BB]<?php

$ip[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"REMOTE_ADDR"[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$checkip[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM registratie WHERE ip="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$checkip[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<font color=#CB2121 style=font-weight:bold;>Je bent al geregistreerd, helaas kan je geen meerdere accounts hebben.</font> "[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700](![/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"naam"[/COLOR][COLOR= #007700]]))
{[/COLOR]
[COLOR= #0000BB]$habbo[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"input1"[/COLOR][COLOR= #007700]]));[/COLOR]
[COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"input2"[/COLOR][COLOR= #007700]]));[/COLOR]
[COLOR= #0000BB]$ww1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"input3"[/COLOR][COLOR= #007700]]));[/COLOR] 
[COLOR= #0000BB]$ww2[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR]htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"input4"[/COLOR][COLOR= #007700]]));[/COLOR]
[COLOR= #0000BB]$ww[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ww1[/COLOR][COLOR= #007700]);[/COLOR] 

[COLOR= #0000BB]$bestaan[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM registratie WHERE naam="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]1[/COLOR] [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]31[/COLOR] [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/substr_count"]substr_count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]" "[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bestaan[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]0[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$habbo[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] check_email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]) &&[/COLOR] [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$ww1[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$ww2[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$ww[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #DD0000]""[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$ww1[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #0000BB]$ww2[/COLOR]  [COLOR= #007700]&&[/COLOR] [URL="http://www.php.net/preg_match"]preg_match[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]/^[a-zA-Z0-9_-]+$/[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700]))
{[/COLOR]
[COLOR= #0000BB]$code[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/rand"]rand[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]100000[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]999999[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$insert[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO registratie (habbo, wachtwoord, email, ip) VALUES ("[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ww[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]", "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]",  "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);;[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$insert[/COLOR][COLOR= #007700]){[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Gelukt! Je bent een van de eerste habbos op Habbodesk.net!."[/COLOR][COLOR= #007700];

}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Oeps, er is iets misgegaan, probeer opnieuw!."[/COLOR][COLOR= #007700];
}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
 ?><form id="registreren" name="registreren" method="post">
</div>
<div style=float:left;><b>Habbo</b></div><div class=tekst2 style=float:left;padding-top: 1px;>[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [COLOR= #0000BB]$habbo[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je hebt dit niet ingevuld, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] && ![/COLOR][URL="http://www.php.net/preg_match"]preg_match[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]/^[a-zA-Z0-9_-]+$/[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je habbo bevat tekens die niet toegestaan zijn, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700]) <[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Een habbo van 1 letter bestaat niet, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [URL="http://www.php.net/strlen"]strlen[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]30[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je habbonaam is te lang, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bestaan[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je habbonaam is al geregistreerd bij ons, probeer een andere habbo!</font>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [URL="http://www.php.net/substr_count"]substr_count[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]" "[/COLOR][COLOR= #007700]) >[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je habbonaam bevat tekens die niet toegestaan zijn, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</div><br /><input type=text class=text name=input1 maxlength=30 value="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$habbo[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"><br />"[/COLOR][COLOR= #007700];[/COLOR]
?><div style=float:left;><b>E-mail</b></div><div class=tekst2 style=float:left;padding-top: 1px;>[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [COLOR= #0000BB]$email[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je hebt dit niet ingevuld, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] && ![/COLOR]check_email[COLOR= #007700]([/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700]))
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je email bevat tekens die niet toegestaan zijn, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</div><br /><input type=text name=input2 class=text  maxlength=70 value="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$email[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"><br />"[/COLOR][COLOR= #007700];[/COLOR]
?><div style=float:left;><b>Wachtwoord</b></div><div class=tekst2 style=float:left;padding-top: 1px;>[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [COLOR= #0000BB]$ww1[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je hebt dit niet ingevuld, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</div><br /><input type=password class=password name=input3 maxlength=30 value="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ww1[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"><br />"[/COLOR][COLOR= #007700];[/COLOR]
?><div style=float:left;><b>Herhaal wachtwoord</b></div><div class=tekst2 style=float:left;padding-top: 1px;>[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [COLOR= #0000BB]$ww2[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je hebt dit niet ingevuld, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"submit"[/COLOR][COLOR= #007700]] &&[/COLOR] [COLOR= #0000BB]$ww1[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]$ww2[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"&nbsp;&nbsp;<font color=#CB2121 style=font-weight:bold;>Je wachtwoord komt niet overeen met het eerste, probeer opnieuw!</font>"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"</div><br /><input type=password  class=password name=input4  maxlength=30 value="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ww2[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"><br />"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<input type=submit name=submit />"[/COLOR][COLOR= #007700];[/COLOR]

?>
<div style="width:  273px;margin-top:5px;">
<a id="submit_avatar"  href="registreren.php" name="submit" onClick="document.registreren.submit();" class="button-link">
  <div class="button-container">
  <div class="button-left"></div>
  <div class="button-content">Registreren!</div>
  <div class="button-right"></div>
  </div>
  </a>
</div>
</form>

[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Je bent ingelogd, registreren is dus niet mogelijk."[/COLOR][COLOR= #007700];
}[/COLOR]
?>

</div>
<div style="clear:both;"></div>

</div>
<div id="einde"></div>
</div>
</body>
</html>
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Doe je toch iets fout....
Hier werkt het wel...
0
Jvdw

Lid · Topicstarter

Berichten
4.321
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
ligt het aan firefox?

toevoeging op 5 juli 2012, 23:39:34:
check mijn spoiler btw
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Toon voortaan eens relevante code wink
Laat anders eens een gestript voorbeeld zien, die ik/we kan/kunnen debuggen?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren