phpbar.de logo

Mailinglisten-Archive

[php] AW: [php] Parameteruebergabe!

[php] AW: [php] Parameteruebergabe!

Gloss Mathias Mathias.Gloss_(at)_start.de
Thu, 3 Aug 2000 14:45:19 +0200


Aloha,

> ----------
> Von: 	Nikolai Prokoschenko[SMTP:nikolai_(at)_prokoschenko.de]
> 
> <?
>    $stri="<form action=\"edit_table.php3?option=edit&db_name=";
>    $stri.=$db_name;
>    $stri.="&tab_name=";
>    $stri.=$tab_name;
>    $stri.=" ";
>    $stri.="method=\"post\">";
>    print ($stri);
> ?>
> 
Also ich glaub so geht das NICHT.

das geht so :

$stri ='<form action="edit_table.php3" method="POST">
        <input type="hidden" name="option" 
               value="edit">
        <input type="hidden" name="db_name" 
               value="' . urldecode($db_name) . '">
        <input type="hidden" name="tab_name" 
               value="' . urldecode($tab_name) . '">
       ';
echo $stri;
echo '..... restliche Formularfelder hier hin.....';
echo '</form>';



BTW: methode GET : ~ 2 kB Daten, POST mehr oder weniger egal.
     (kann man bei POST irgendwo einstellen, wieviel maximal
      angenommen werden soll - soweit ich weis)

Grüße, Mathias




php::bar PHP Wiki   -   Listenarchive