Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
KLUGLUG
Blood Service Portal
Commits
9e73f3c3
Commit
9e73f3c3
authored
Nov 27, 2019
by
Nunna Satya Surya Venkat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
f8c8b34c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
form.php
form.php
+56
-0
No files found.
form.php
0 → 100644
View file @
9e73f3c3
<?php
session_start
();
$_SESSION
[
'number'
]
=
$_GET
[
'pho'
];
?>
<h1>
Are You Available to Donate Now
</h1>
<form
method=
"POST"
action=
"form.php?pho=
<?php
echo
$_SESSION
[
'number'
]
?>
"
>
<input
type=
"submit"
name=
"action"
value=
"YES"
/>
<input
type=
"submit"
name=
"action"
value=
"NO"
/>
</form>
<form
method=
"POST"
action=
"form.php?pho=
<?php
echo
$_SESSION
[
'number'
]
?>
"
>
<?php
$con
=
mysqli_connect
(
"localhost"
,
"id11481374_surya"
,
"Nsurya@123"
,
"id11481374_blood"
);
$pho
=
$_SESSION
[
'number'
];
$val
=
""
;
if
(
$_SERVER
[
'REQUEST_METHOD'
]
==
'POST'
){
if
(
!
empty
(
$_POST
[
'fname'
]))
{
$p
=
$_POST
[
'fname'
];
$sp
=
"UPDATE bloo SET dd =
$p
WHERE mobile =
$pho
"
;
$fun
=
mysqli_query
(
$con
,
$sp
);
echo
"Updated Successfully Thank You :)
$pho
"
;
}
else
if
(
$_POST
[
'action'
]
==
'YES'
)
{
echo
"The hospital location you supposed to Donate blood-->(LINK)"
;
}
else
if
(
$_POST
[
'action'
]
==
'NO'
)
{
echo
"How Many months ago You Have Donated Blood??(Enter Only Number)<br>"
;
echo
"<input name='fname' type='text' class='textfield' id='fname' value='
$val
' />"
;
echo
"<input type='submit' name='submit' value='Submit'>"
;
}
}
?>
</form>
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