1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-26 08:22:08 +01:00
Files
archived-doc-es/language/predefined/variables/post.xml
Pedro Antonio Gil Rodríguez bbff9cff2d Actualización a la última versión
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@336994 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-17 16:12:43 +00:00

119 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: c24e9b3c30945647e7b4943b24dc594c386976ea Maintainer: yago Status: ready -->
<!-- Reviewed: yes Maintainer: seros -->
<phpdoc:varentry xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="reserved.variables.post" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>$_POST</refname>
<refname>$HTTP_POST_VARS [obsoleta]</refname>
<refpurpose>Variables POST de HTTP</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
Un array asociativo de variables pasadas al script actual
a través del método POST de HTTP cuando se emplea <literal>application/x-www-form-urlencoded</literal>
o <literal>multipart/form-data</literal> como Content-Type de HTTP en la petición.
</para>
<simpara>
<varname>$HTTP_POST_VARS</varname> contiene la misma información inicial,
aunque no es una <link linkend="language.variables.superglobals">superglobal</link>.
(Observe que <varname>$HTTP_POST_VARS</varname> y <varname>$_POST</varname>
son variables diferentes, por lo nque PHP las trata de forma distinta).
</simpara>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>4.1.0</entry>
<entry>
Se introdujo <varname>$_POST</varname>, por lo que
<varname>$HTTP_POST_VARS</varname> quedó obsoleta.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example xml:id="variable.post.basic">
<title>Ejemplo de <varname>$_POST</varname></title>
<programlisting role="php">
<![CDATA[
<?php
echo 'Hola ' . htmlspecialchars($_POST["nombre"]) . '!';
?>
]]>
</programlisting>
<simpara>
Asumiendo que el usuario envió por el método POST nombre=Juan
</simpara>
&example.outputs.similar;
<screen>
<![CDATA[
Hola Juan!
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.is-superglobal;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link linkend="language.variables.external">Manejo de variables externas</link></member>
<member><link linkend="book.filter">La extensión filter</link></member>
</simplelist>
</para>
</refsect1>
</phpdoc:varentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->