php


Blank page after submission on PHP Sign up form


I have been close to finding my error but I can't... please help me with the problem I have with my PHP signup form -
I have signup page, index page, login page and logout page and I set redirect statement as below;
$error = array();
$error[] = "each time false is returned print some message here";
if (count($error) === 0)
{
header('location: ./login.php');
(I wish I could paste the whole page code and I don't even know where the problem really is...)
When I click submit button on signup form, it goes to a blank page and when there is an error it shows on the blank screen but when the signup is successful it doesn't show anything and stay on the blank page.
My HTML is like this
<h3>Please enter username and password to sign up</h3>
<form action="./signup.php" method="post">
Username: <input type="text" name="username" placeholder="User name"><br>
Password: <input type="password" name="password" placeholder="Password"><br>
<input type="submit" value="Sign up">
</form>
Can you tell what could be the problem?
Thanks so much for the help in advance...

Related Links

php: accessing array dynamically using a string variable
MYSQL INSERT query don't use empty fields
showing username after login on the website
Mysql selecting some field according to some condition
How to Insert CSV Table to Mysql Database?
combining values from mysql seperated by comma using explode
How to do a query in CDbCriteria with Not Exists clause?
How to fix fatal error in wpmudev private messaging wordpress plugins
Page Source is still showing the original page name after HTACCESS rewrite and using $_SERVER['PHP_SELF']
php nginx X-Accel-Redirect headers
mod_rewrite post data is missing
Easy Digital Downloads installation on sub domains in Wordpress
phpthumb not working with bmp file
How to convert PHP Array with requirement
PHP mail form with multiple recipients & different contents: Sometimes not received
What is the name of this structured string?

Categories

HOME
memory
shinyapps
softlayer
haproxy
subdomain
risk-management
dronekit-python
portable-class-library
nsis
moodle-api
flurry
openfoam
phpmqtt
responsive-design
azure-logic-apps
eddystone
mutation-testing
wine
fasm
erd
grocery-crud
stimulsoft
mahout-recommender
fosuserbundle
significance
scheduled-tasks
social-tables
akka-persistence
weex
pst
liferay-6.2
generator
pymongo
environment
openbr
instructions
memory-fences
series
counting
db2-luw
xvfb
djcelery
variable-variables
praat
stat
data-uri
system-on-chip
robust
absolute
tinyioc
redisson
subforms
mongodb-aggregation
gnome-terminal
dtd
case-when
kendo-editor
zend-server
fitbit
finder
allegro
xmlbeans
dmarc
django-testing
mathml
qpixmap
django-redis
vimperator
wif4.5
grinder
bayesglm
place
enaml
knife
swagger-maven-plugin
ocmockito
ssmtp
qt5.4
commenting
meteor-collections
accountmanager
cpu-time
saga
hyphen
.net-remoting
rikulo
jquery-cycle
contextswitchdeadlock
idispatch
java.lang.class
algol68
zend-server-ce
infopath-2007
asio
upshot
css-friendly
jmenu
ixmldomdocument
firephp
data-retrieval
index.dat
objectinstantiation

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App