cgi与html相互调用

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

html中调用html:spa

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

cgi中调用htmlhtm

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

cgi接受html信息:get

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>");input

相关文章
相关标签/搜索