Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Registration and Login

Featured Replies

I know there are a few topics on login pages and register pages but I've got some questions.

 

I'm creating a site where I want people to register up and be able to login. When they login, they will be taken to their profile page, where it will contain all the information they used when they signed up.

 

So basically, could someone tell me how to do this on the register page. On this register page, I want the viewer to see this:

 

Name: Simply just the first name

Surname: Just the surname

Age: Age of person, input validated for integers

Location: Where the person is from

Image: Is it possible for this to be an upload form where people could upload their picture? I'm not quite sure.

 

I would also like to add additional fields to this, so could someone tell me how to do that as well, they will just be text.

Are you trying to do this in MySQL/PHP? With the registration page you'll want to:

A
: Validate the input

B
: Put it into a database table

C
: Possibly have some sort of human validation (i.e. e-mail activation).

 

To direct someone to a specific location (for example after they've logged in) you can send a HTTP request with:

<?php
header('Location: http://www.mysite.com/index.php?id=logged_in');
?>

 

Header requests need to be done before any output is sent, so above your DTD for example.

  • Author

Thanks for replying but I managed to get that setup. However my logout page doesn't work. I've set up my session on the login page, with session start, and at the top of my members area, but when I do the session_destroy, I get an error message that looks like:

 

Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in logout.php on line 2
Thanks for replying but I managed to get that setup. However my logout page doesn't work. I've set up my session on the login page, with session start, and at the top of my members area, but when I do the session_destroy, I get an error message that looks like:

 

Is session_start(); included in the logout page? You have to start or maintain the session to destroy it.

  • Author

Oh, I see. But will the session be therefore destroyed throughout the whole site?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.