php - Including *any* query string in my site URL causes a 404 -
first apologize if has been asked; used search & advanced search , hours' worth of googlefu, no avail.
the issue i'm having time try , use query in url causes 404.
127.0.0.1/login.php throws error saying required query (&asdfasdf=?) doesn't exist, otherwise works fine... http://puu.sh/2siyc.png
127.0.0.1/login.php&asdfasdf=5 causes 404... http://puu.sh/2sixf.png
what i've tried: through extensive searching, lot of results turned query names "aren't allowed" if they're used cms in question. isn't using cms, , if there's funky in php back-end claims query names, doubt they're called "asdfasdf" mine.
any ideas?
my code:
<?php include('header.php') ?> <!-- primary content --> <div class="row"> <div class="span12" style="border: 1px solid #000;"> <div class="row"> <div class="span12"> <?php $error = $_get["asdfasdf"]; if(is_null($error)){ echo "<h1> &asdfasdf=x resolved null </h1>"; } else { echo "<h1> passwords did not match </h1>"; } ?> </div> </div> <div class="row" id="login-container"> <!-- left-hand-side; login form--> <div class="span6"> <form class="form-horizontal"> <div class="control-group"> <label class="control-label" for="inputemail">email</label> <div class="controls"> <input type="text" id="inputemail" placeholder="email"> </div> </div> <div class="control-group"> <label class="control-label" for="inputpassword">password</label> <div class="controls"> <input type="password" id="inputpassword" placeholder="password"> </div> </div> <div class="control-group" id="sign-in"> <label class="checkbox"> <input type="checkbox"> remember me </input> </label> <button type="submit" class="btn">sign in</button> </div> </form> </div> <!-- right-hand-side; register form--> <div class="span6" id="register-container"> <form class="form-horizontal" id="register-container" method="post" action="register_validate.php"> <div class="control-group"> <label class="control-label" for="inputemail">email address</label> <div class="controls"> <input type="text" id="email" name="email" placeholder="email"> </div> <span class="help-block indented-help-block">this username.</span> </div> <div class="control-group"> <label class="control-label" for="inputpassword">password</label> <div class="controls"> <input type="password" id="password" name="password" placeholder="password"> </div> </div> <div class="control-group"> <label class="control-label" for="inputpasswordconfirmation">confirm password</label> <div class="controls"> <input type="password" id="passwordconfirmation" name="passwordconfirmation" placeholder="password"> </div> </div> <div class="control-group" id="register"> <label class="checkbox"> <input type="checkbox">log in immediately</input> </label> <button type="submit" class="btn">register</button> </div> </form> </div> </div> </div> </div> <?php include('footer.php') ?>
try using ?
instead of &
first parameter. 127.0.0.1/login.php?asdfasdf=5
instead of 127.0.0.1/login.php&asdfasdf=5
Comments
Post a Comment