Link to home
Start Free TrialLog in
Avatar of Richard Lloyd
Richard Lloyd

asked on

Record POST form entry in iis logs

I am trying to find a way to capture information from a form POST in the corresponding IIS logs for some debugging purposes.

I have a form that captures data and is then added to a database. From time to time the data is not added and there is no entry in my internal logs, but I can see the page request being made in the IIS log.

If the FORM used GET, then I would be able to see the data being sent, but as the form is secure and needs POST, I all can see in the IIS logs is the PHP file name.

Is there a way to capture a form field and include it in the form action as a querystring. May be using ajax to populate the querystring?

So my form would look something like, where xxxxxx is the data being entered, which then also shows in the querystring:

<form method="post" action="action.php?data=xxxxxx">
<input name="data" type="text" value="xxxxxx">
<input value="SUBMIT" type="submit">
</form>

Open in new window

Avatar of leakim971
leakim971
Flag of Guadeloupe image

Avatar of Richard Lloyd
Richard Lloyd

ASKER

Thanks - but I am not using asp.net, which bit refers to what I am looking for?
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Brilliant!

Perfect.