Skip to content

Commit

Permalink
Update survey.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hizclick authored Jan 24, 2020
1 parent 1cefedf commit d1269d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions survey.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
if(isset($_GET['username'])){
$uname = $_GET['username'];
}
$servername = "kcpgm0ka8vudfq76.chr7pe7iynqr.eu-west-1.rds.amazonaws.com";
$username = "kcpqmduod16lyyh2";
$password = "dahm3oxh2cakdjm8";
$db = "vnb273g86ehntst1";
$servername = "localhost";
$username = "root";
$password = "";
$db = "survey";
// Create connection
$conn = new mysqli($servername, $username, $password, $db);

Expand Down Expand Up @@ -76,7 +76,7 @@
<div id="myform card-body" style="width: 200rem; margin: 0 auto; float: none; margin-bottom: 10px; margin-top: 10%">
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
<input type="text" name="tweet" style="border: none; resize: none; font-size: 34px; line-height: 1.5; color: white; text-align: justify;" disabled>
<div style="width: 50rem; float: center;">
<div style="width: 50rem; float: center; margin-left: 700px">
<p style="color: white; font-size: 28px; padding-left: 100px;"><?php if(isset($text)){echo $text;}?></p><br>
</div>
<input type="text" name="uname" style="display: none; background-color: #5cb85c;" value=<?php if(isset($_GET['username'])){echo $_GET['username'];}else if(isset($uname)){echo $uname;}?>>
Expand Down

0 comments on commit d1269d3

Please sign in to comment.