简体   繁体   中英

Blank page when run php file

When I run the bellow php code & fill all data and submit it I get blank page, so where the problem here ?

<br><br>

Create New User :

<br><br>

<table width="90%" border=0><tr><td>

<FORM ACTION="user_login.php" METHOD=POST>
<INPUT TYPE=HIDDEN NAME=p_action VALUE="Create_New_User">
Username : <br><INPUT TYPE=TEXT NAME=p_in_username SIZE="25"> <BR>
eMail : <br><input type=text name=p_in_email size="25"> <br>

<br> 

<input type=submit value="Submit">

</FORM>



<?php


?>

When you submit the form, you will be redirected to the page defined in the 'action' value of your form. In this case: "user_login.php". I assume, you are then not redirecting from there.

Try adding a:

header("location: index.php");

And replace index.php with where you want to redirect to.

please check your PHP configuration, is errors and warnings are ON ? it will be better if you share you php code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM