html中调用cgi。<form action="/cgi-bin/mult.cgi" method="get" target="_blank">

html中调用html:

<frameset rows="120,*" cols="*" frameborder="no" border="0" framespacing="0">
<frame src="tou.html" name="topFrame" scrolling="No" noresize="noresize" />

cgi中调用html

if( (strcmp(name,"root")+1) && (strcmp(pass,"password")+1) )
printf("<a href=\"../first.html\" target=\"mainFrame\">%s</a>",name);

cgi接受html信息:

date = getenv("QUERY_STRING");
if(date == NULL)
printf("<h1>no word input cgi<h1>");
if(sscanf(date,"fname=%[^&]&lname=%s",&name,&pass)!=2)
printf("<p>you input is wrong</p>");

相关文章:

  • 2022-01-27
  • 2021-07-24
  • 2021-10-14
  • 2021-09-15
  • 2021-10-06
  • 2021-11-30
  • 2021-04-25
  • 2021-09-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2021-12-16
  • 2021-07-02
  • 2022-02-10
  • 2022-02-26
相关资源
相似解决方案