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

convert html image to base64
Combine php array duplicate values
How to sort array keys by other array keys? [duplicate]
Laravel4 memory consumption concerns
PDO: Can't connect to mysql when host is set in variable
CSS #import not working with PHP
Wordpress: Display all pages
Insert values from function php in database mysql
WooCommerce coupon code per line item
Datetime ISO 8601
Website design using html and php(no javascript/jquery/ajax) [closed]
Getting no response on Zoho API CRM
Get summed value from specific rows
how to use $_FILES[] with slim
Set Background Image from Custom Meta in WordPress
Email Sending error mail() function

Categories

HOME
firebase
svn
functional-programming
angular-ui-grid
focus
jms
haproxy
ews
theano
website
risk-management
slider
celery
bing-search
google-webmaster-tools
fogbugz
greasemonkey
linker
stored-procedures
specifications
hspi
mutation-testing
driver
freertos
jpa-2.0
complexity-theory
asp.net-core-1.0
maven-plugin
robolectric
scheduled-tasks
spring-ldap
conda
stackexchange.redis
quantitative-finance
device
pubxml
window-managers
python-appium
pyspark-sql
python-2.x
nsmutablearray
char-pointer
db2-luw
buildforge
grails-2.5
subclassing
extbase
export-to-pdf
swfupload
word-cloud
linq-to-excel
absolute
glassfish-4.1
word-2016
zend-server
mpmovieplayercontroller
emf-compare
fitbit
bpms
haraka
deviare
java-2d
dcount
nvda
node-glob
maximize
exists
jsr363
pack
extend
dynamics-ax-2012-r2
sablecc
iodocs
utf8-decode
zend-mail
adwords-apiv201402
window-resize
berkeley-db-xml
webautomation
xulrunner
jomsocial
proxy-server
particle-swarm
strcmp
ggts
application-server
non-ascii-characters
revmob
iirf
node.js-stream
objective-c-runtime
.net-remoting
jsplitpane
daap
zend-pdf
android-dialog
instance-variables
server-name
kobold2d
liveconnect
asio
haiku
datacontracts
server-variables
data-dump
nsrangeexception
canonicalization
servlet-container
formal-semantics
android-2.1-eclair
mongrel
explicit
self-tracking-entities
rational-unified-process
rawcontacts
processors
inversion
suggestbox

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App