Solved

CGI AND ASP

Posted on 1998-05-13
6
159 Views
Last Modified: 2013-12-25
I have two file welcome.html and chkpwd.asp
In the first file i have this code:
<FORM METHOD="POST"  ACTION="http//......................./cgi-bin/chkpwd.asp">
<INPUT TYPE="text" SIZE=20 NAME="Utente">
<INPUT TYPE="password" SIZE=20 NAME="password">
<INPUT TYPE="submit"  NAME="Send" VALUE="Procedi">
</FORM>
These parameters will go into stdin and PATH_INFO.
From the second file chkpwd.asp what is the function (like scanf(%s, stringa_input) c language)
to read the values of the parameters from stdin or  PATH_INFO variable ??
0
Comment
Question by:grafiti051398
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
Don't know ASP, but usually you read from stdin with fgets() from <stdio.h>, THEN process the read buffer. For env vars instead, you read with getenv() from <stdlib.h>.

HTH, julio
0
 

Author Comment

by:grafiti051398
Comment Utility
Thanks, but I would like what is the function in ASP language.
0
 
LVL 5

Expert Comment

by:julio011597
Comment Utility
Oops! i believed ASP was but a protocol... one never stops learning :)

Good luck, julio
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Author Comment

by:grafiti051398
Comment Utility
Edited text of question
0
 
LVL 28

Accepted Solution

by:
sybe earned 200 total points
Comment Utility
Request.ServerVariables("PATH_INFO")

I use this ASP script often to test request variables from a form:
It shows ServerVariables, Form and Querystring variables


<TABLE BORDER=1 WIDTH=100%>

<TR>
      <TH COLSPAN=2> HTTP / Server Variables</TH>
</TR>


<TR>
      <TD><B>Server Variable</B></TD>
      <TD><B>Value</B></TD>
</TR>
      <% For Each name In Request.ServerVariables %>
<TR>
      <TD> <%= name %> </TD>
      <TD> <%= Request.ServerVariables(name) %> </TD>
</TR>

<% Next %>
</TABLE>

<P>&nbsp;</P>

<TABLE BORDER=1 WIDTH=100%>

<TR>
      <TH COLSPAN=2> Querystring</TH>
</TR>

<TR>
      <TD><B>Name</B></TD>
      <TD><B>Value</B></TD>
</TR>
      <% For Each name In Request.Querystring %>
<TR>
      <TD> <%= name %> </TD>
      <TD> <%= Request.Querystring(name) %> </TD>
</TR>

<% Next %>
</TABLE>


<P>&nbsp;</P>

<TABLE BORDER=1 WIDTH=100%>

<TR>
      <TH COLSPAN=2> Form Data</TH>
</TR>

<TR>
      <TD><B>Name</B></TD>
      <TD><B>Value</B></TD>
</TR>
      <% For Each name In Request.Form %>
<TR>
      <TD> <%= name %> </TD>
      <TD> <%= Request.Form(name) %> </TD>
</TR>

<% Next %>
</TABLE>

0
 

Author Comment

by:grafiti051398
Comment Utility
Sybe, I have resolved my problem testing my code with your code.

Thanks Sybe
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now