|
() CGI
() cgi ,
.
,
web- "CGI "
. 5
,
(, " 1", " 2" ..).
"" , ,
.
C
, . html-
:
<img src="/cgi-bin/counter.cgi?id=_">,
"_" - 1 5. ,
1, :
<img src="/cgi-bin/counter.cgi">
web- "CGI ",
, ( 200
), , ..
! C ,
.
, , .
SSI, , ,
.shtml
<!--#include virtual="/cgi-bin/textcounter.cgi?id=_" -->,
"_" - 1 5. ,
1, :
<!--#include virtual="/cgi-bin/textcounter.cgi" -->-
.
web- "CGI ",
,
.
:
.
html :
<form action=/cgi-bin/gb-post.cgi method=post>
Name: <input type=text name="name"><br>
e-mail: <input type=text name="email"><br>
message:<br>
<textarea name="message" cols=40 rows=6></textarea><br>
<input type=submit>
</form>
, -
. 5
- , ,
<input type=HIDden name=id value="">
<form action...>. ,
1.
: html-
, ,
<!--#exec cgi="/cgi-bin/gb.cgi" -->
.shtml ,
2-5,
, :
<a href="guestbook.shtml?id=">
: .
,
web-
, .
, .
HTML
e-mail .
HTML-
. "+",
. ,
"-", .
form action /cgi-bin/mailform.cgi.
, -
. 5
- , ,
<input type=hidden name=id value="">
HTML-, :
<form action=/cgi-bin/mailform.cgi method=post>
: <input type=text name="+"><br>
: <input type=text name="+"><br>
? <br>
<select name="">
<option value="1">1
<option value="2">2
<option value="3">3
</select><br>
:
<textarea cols=40 rows=6><br>
</textarea><br>
<input type=submit name="-" value=" ">
</form>
:
1. , HTML
2.
( "+"),
.
3. , e-mail
.
, ,
"" e-mail ,
, URL -
.
2 URL HTML-, CGI
. "
GET" ,
, , CGI .
,
FTP, Web .
:
public_html, Web,
. ,
public_html/mailform, ,
.
. , , ,
. "public_html/mailform/mailform.txt" ( .txt , ). , "http://__/mailform/mailform.txt" , .
<< |
|
>>
|