Zizzled Posted August 12, 2011 Share Posted August 12, 2011 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 More sharing options...
JasonLewis Posted August 12, 2011 Share Posted August 12, 2011 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 https://forums.phpfreaks.com/topic/244571-need-help-with-_post/#findComment-1256301 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.