header("Location: sua_pagina_anterior.php");
antes disso, vc não pode imprimir nada, (nenhum tipo de echo, print, printf, sprintf... )
There have been 11 items by herus02 (Search limited from 27/04/2023)
Posted by herus02 on 31/01/2007, 10:31 in PHP
Posted by herus02 on 06/08/2006, 10:58 in PHP
Posted by herus02 on 02/06/2006, 21:41 in MySQL
Posted by herus02 on 13/12/2006, 15:02 in Artigos, Dicas e Tutoriais de PHP
Posted by herus02 on 31/01/2007, 12:22 in PHP
<?php $parcelas = array('1'=> 'a vista', '2' => 'Parcelas'); ?>
Posted by herus02 on 31/01/2007, 10:39 in PHP
Posted by herus02 on 31/01/2007, 12:06 in PHP
<?php if (!empty($_GET["pag"])) { $verif = eregi("http|ftp|https|www|wget|exe|scr", $_GET["pag"]); if ($verif) { $arquivo = "ilegal"; } else { if (file_exists($_GET["pag"] . ".php")) { $arquivo = $_GET["pag"]; } else { $arquivo = "404"; } } } else { $arquivo = "principal"; } include("$arquivo.".php"); ?>
Community Forum Software by IP.Board
Licensed to: Webmasters Online