hey
ik ben bezig met een ledenlijst script
alleen maak ik een zoekfunctie
alleen weet ik niet hoe ik de waarde met javascript in php kan doen
ik heb nu dit
ik ben bezig met een ledenlijst script
alleen maak ik een zoekfunctie
alleen weet ik niet hoe ik de waarde met javascript in php kan doen
ik heb nu dit
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/header.php[/COLOR][COLOR= #007700];[/COLOR] ?>
<script type="text/javascript">
function load() {
document.getElementById(daiman).innerHTML = [COLOR= #0000BB]<?php
$a[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"<script>document.getElementById(naam).value</script>"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM leden WHERE gebruikersnaam LIKE "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]))
{[/COLOR]
?>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<a href="profiel.php?user=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]gebruikersnaam[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]</a><br />[/COLOR][COLOR= #007700];[/COLOR] ?>[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]}[/COLOR]
?>;
}
</script>
<style>
.hover a
{
text-decoration: none;
color: #0D3655;
}
.hover a:hover
{
border-bottom: 1px dotted #0D3655;
}
</style>
<div class="hover">
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<form name="form1" method="post" action=""><input name="naam" type="text" id="naam" onchange="load()"></form>[/COLOR][COLOR= #007700];[/COLOR]
?>
<span id="daiman"></span>
</div>
[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/include"]include[/URL] [COLOR= #DD0000]includes/footer.php[/COLOR][COLOR= #007700];[/COLOR] ?> 