menriquez Posted May 16, 2008 Share Posted May 16, 2008 yes I am trying to write a simple script that will use info from one area to POST to another. Here is the code that I am trying to log into... http://localhost/tccc/tccctest/index.php <?php if(!file_exists('inc/config.inc.php')) { header('Location: install.php'); exit; } require_once('inc/init.inc.php'); if(isset($_POST['bsubmit']) || isset($_POST['bguest'])) { include_once($DOCUMENT_PAGES.'signin-2.inc.php'); } else if(isset($G_SESSION['userid'])) { $g_vars['page']['title'] = $lngstr['page_title_panel']; include_once($DOCUMENT_PAGES.'home.inc.php'); } else { $g_vars['page']['title'] = $lngstr['page_title_signin']; include_once($DOCUMENT_PAGES.'signin-1.inc.php'); } ?> So the part I want is to POST some data into the bsubmit key so I will get to the proper page signin-2.inc.php. So I tried using a input button embedded in a large HTML file... ... <form action="http://localhost/tccc/tccctest/index.php" method="post"> <input type="hidden" bsubmit="Sign in" /> <input type="hidden" username="[email protected]" /> <input type="button" value="Knowledge Test" /> </form> ... when I press the button, NADA. nothing happens at all it just stays on the same page. any ideas? - mark Link to comment https://forums.phpfreaks.com/topic/105974-solved-trying-to-simulate-loginpost-to-bypass-screen/ Share on other sites More sharing options...
iarp Posted May 16, 2008 Share Posted May 16, 2008 ... <form action="http://localhost/tccc/tccctest/index.php" method="post"> <input type="hidden" bsubmit="Sign in" /> <input type="hidden" username="[email protected]" /> <input type="button" value="Knowledge Test" /> </form> ... when I press the button, NADA. nothing happens at all it just stays on the same page. any ideas? - mark <input type="submit" name="submit" value="Knowledge Test" /> Link to comment https://forums.phpfreaks.com/topic/105974-solved-trying-to-simulate-loginpost-to-bypass-screen/#findComment-543095 Share on other sites More sharing options...
menriquez Posted May 16, 2008 Author Share Posted May 16, 2008 yes works many kudos 2 u... - mark Link to comment https://forums.phpfreaks.com/topic/105974-solved-trying-to-simulate-loginpost-to-bypass-screen/#findComment-543109 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.