Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
nakhan
/
ICD007-EventManagament
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ff91e919
authored
5 years ago
by
nakhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
signup form
parent
102ab099
master
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
signup.php
signup.php
0 → 100644
View file @
ff91e919
<?php
require
"header.php"
;
?>
<main>
<div
class=
"wrapper-main"
>
<section
class=
"section-default"
>
<h1>
Signup
</h1>
//here I ll add error messages if user has tried signup already
<form
class=
"form-signup"
action=
"includes/signup.inc.php"
method=
"post"
>
<?php
// Here we check if the user already tried submitting data.
// We check username.
if
(
!
empty
(
$_GET
[
"uid"
]))
{
echo
'<input type="text" name="uid" placeholder="Username" value="'
.
$_GET
[
"uid"
]
.
'">'
;
}
else
{
echo
'<input type="text" name="uid" placeholder="Username">'
;
}
// We check e-mail.
if
(
!
empty
(
$_GET
[
"mail"
]))
{
echo
'<input type="text" name="mail" placeholder="E-mail" value="'
.
$_GET
[
"mail"
]
.
'">'
;
}
else
{
echo
'<input type="text" name="mail" placeholder="E-mail">'
;
}
?>
<input
type=
"text"
name=
"uid"
placeholder=
"Username"
>
<input
type=
"text"
name=
"mail"
placeholder=
"Email"
>
<input
type=
"password"
name=
"pwd"
placeholder=
"Password"
>
<input
type=
"password"
name=
"pwd-repeat"
placeholder=
"Repeat password "
>
<button
type=
"submit"
name=
"signup-submit"
>
Signup
</button>
</form>
</section>
</div>
</main>
<?php
require
"footer.php"
;
?>
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment