Click here to Skip to main content
15,881,882 members
Home / Discussions / Hosting and Servers
   

Hosting and Servers

 
AnswerRe: SMTP SERVER Pin
Richard Deeming19-Apr-21 20:53
mveRichard Deeming19-Apr-21 20:53 
GeneralRe: SMTP SERVER Pin
Member 150787168-Aug-22 17:42
Member 150787168-Aug-22 17:42 
GeneralRe: SMTP SERVER Pin
Jeremy Falcon2-Feb-23 6:28
professionalJeremy Falcon2-Feb-23 6:28 
GeneralRe: SMTP SERVER Pin
Jeremy Falcon2-Feb-23 6:31
professionalJeremy Falcon2-Feb-23 6:31 
QuestionEstou com problema ao hospedar o meu website Joomla no inmotionhosting Pin
Jeemy Ballin24-Mar-21 4:33
Jeemy Ballin24-Mar-21 4:33 
AnswerRe: Estou com problema ao hospedar o meu website Joomla no inmotionhosting Pin
CHill6024-Mar-21 4:34
mveCHill6024-Mar-21 4:34 
GeneralRe: Estou com problema ao hospedar o meu website Joomla no inmotionhosting Pin
Member 150787168-Aug-22 18:06
Member 150787168-Aug-22 18:06 
Questionam trying to add users to a database Pin
Member 150642613-Feb-21 21:44
Member 150642613-Feb-21 21:44 
the below is the code.

<!DOCTYPE html>
<html>
<head>
<title>My First PHP Website</title>
</head>
<body>
<h2>Registration Page</h2>
<a href="index.php">Click Here to go Back</a><br/><br/>

<form action="register.php" method="post">
Enter Username: <input type="text" name="username" required="required"/> <br/>
Enter Password: <input type="password" name="password" required="required"/><br/>
<input type="Submit" value="register"/>
</form>
</body>
</html>

<?php
if($_SERVER["REQUEST METHOD"] == "POST"){ //line 19
$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);

echo "Username entered is: ". $username . "<br />";
echo "Password entered is: ". $password;
}
?>



however the error i get on a browser is as below.

Warning: Undefined array key "REQUEST METHOD" in C:\xampp\htdocs\MyFirstWebsite\register.php on line 19
AnswerRe: am trying to add users to a database Pin
Richard Deeming3-Feb-21 21:48
mveRichard Deeming3-Feb-21 21:48 
GeneralRe: am trying to add users to a database Pin
hostguy17-Apr-21 2:56
hostguy17-Apr-21 2:56 
GeneralRe: am trying to add users to a database Pin
Richard Deeming18-Apr-21 22:37
mveRichard Deeming18-Apr-21 22:37 
AnswerRe: am trying to add users to a database Pin
Richard Deeming3-Feb-21 21:51
mveRichard Deeming3-Feb-21 21:51 
QuestionWindows service not working Pin
Member 1487786230-Jun-20 22:24
Member 1487786230-Jun-20 22:24 
AnswerRe: Windows service not working Pin
Richard MacCutchan30-Jun-20 22:48
mveRichard MacCutchan30-Jun-20 22:48 
GeneralRe: Windows service not working Pin
Member 1487786230-Jun-20 22:59
Member 1487786230-Jun-20 22:59 
GeneralRe: Windows service not working Pin
Richard MacCutchan30-Jun-20 23:03
mveRichard MacCutchan30-Jun-20 23:03 
AnswerRe: Windows service not working Pin
seotutorialszone4-Jul-20 10:44
seotutorialszone4-Jul-20 10:44 
AnswerRe: Windows service not working Pin
william joe 202213-Jul-22 22:06
william joe 202213-Jul-22 22:06 
QuestionCan't receive email from redirected domain name Pin
pkfox16-May-20 6:56
professionalpkfox16-May-20 6:56 
AnswerRe: Can't receive email from redirected domain name Pin
Peter_in_278016-May-20 14:26
professionalPeter_in_278016-May-20 14:26 
GeneralRe: Can't receive email from redirected domain name Pin
pkfox16-May-20 22:10
professionalpkfox16-May-20 22:10 
AnswerRe: Can't receive email from redirected domain name Pin
Randor 16-May-20 23:51
professional Randor 16-May-20 23:51 
GeneralRe: Can't receive email from redirected domain name Pin
pkfox17-May-20 0:09
professionalpkfox17-May-20 0:09 
GeneralRe: Can't receive email from redirected domain name Pin
Randor 17-May-20 0:27
professional Randor 17-May-20 0:27 
GeneralRe: Can't receive email from redirected domain name Pin
Randor 17-May-20 1:01
professional Randor 17-May-20 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.