Thema: PHP und TPL

Einzelnen Beitrag anzeigen

Benutzerbild von milos
milos

Registriert seit: 14. Jul 2008
Ort: Bern (CH)
508 Beiträge
 
Delphi 11 Alexandria
 
#1

PHP und TPL

  Alt 14. Feb 2009, 19:48
Hallo nochmal
Schon wieder ein Problem
Ich will das ein Link kommt mit dem inhalt von einer TEXTBOX ich habe sie auch in die Variable gesetzt. Alle Variabeln werden automatisch in die TPL eingetragen

Doch mein Problem ist es wird nicht angezeigt was man im Textbox reintut.

PHP
Code:
<?php
$toolname = ($_POST['namebox']);

if ($_GET['done']) { 
$toolbox = ($_GET['done']);
echo "index_" . $toolbox . ".tpl";
}
?>
TPL
Code:
<html>

<head>
<meta http-equiv="Content-Language" content="de-ch">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Scheiss Tools gehen raus</title>
</head>

<body>

<form method="POST" action="--WEBBOT-SELF--">
   

Toolname vom actions Ordner (OHNE .PHP):
   <input type="text" name="namebox" size="39"></p>
   

<input type="button" value="Löschen"

onclick="location='http://localhost/admin/index.php?screen=delete_tools&done=

{$toolname}'"></p>
</form>

</body>

</html>
Milos
  Mit Zitat antworten Zitat