Jump to content

[SOLVED] trying to simulate login/POST to bypass screen


menriquez

Recommended Posts

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

 

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

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.