AnonymousJohn
New member
If have this if statement:
if ( $mypassword != $passconf) {
?>
<script type='text/javascript' >
alert('The two passwords did not match!');
</script>
<?php
header("location:../register.php");
}
When the page runs after I register a user, if the passwords do not match, the header redirects the page, but I never see an alert...
Can someone help me with this problem?
Note: I have also tried putting the javascript inside an echo and that didnt work either
if ( $mypassword != $passconf) {
?>
<script type='text/javascript' >
alert('The two passwords did not match!');
</script>
<?php
header("location:../register.php");
}
When the page runs after I register a user, if the passwords do not match, the header redirects the page, but I never see an alert...
Can someone help me with this problem?
Note: I have also tried putting the javascript inside an echo and that didnt work either