Solved

CGI AND ASP

Posted on 1998-05-13
6
181 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1828428
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
ID: 1828429
Thanks, but I would like what is the function in ASP language.
0
 
LVL 5

Expert Comment

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

Good luck, julio
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:grafiti051398
ID: 1828431
Edited text of question
0
 
LVL 28

Accepted Solution

by:
sybe earned 200 total points
ID: 1828432
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
ID: 1828433
Sybe, I have resolved my problem testing my code with your code.

Thanks Sybe
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Redirecting an Outlook attachment to a specific folder? 3 76
size of file 1 36
Powershell- Registry HIVE 6 63
powershell script to get all AD user without displayname 4 40
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…

737 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