Re: [PHP] Problem with $_POST[] and header();

2003-12-02 Thread Shaun
it works fine as it is though? "David Otton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 2 Dec 2003 10:26:08 -, you wrote: > > >if(!mysql_query($query)){ > > $error = "Could not complete query"; > > header("Location: file.php?error=$error"); > > exit; > >} > > T

Re: [PHP] Problem with $_POST[] and header();

2003-12-02 Thread David Otton
On Tue, 2 Dec 2003 10:26:08 -, you wrote: >if(!mysql_query($query)){ > $error = "Could not complete query"; > header("Location: file.php?error=$error"); > exit; >} The Location: header requires an absolute URI. See RFC 2616, 14.30 >However in file.php I have included $_POST[] variables

[PHP] Problem with $_POST[] and header();

2003-12-02 Thread Shaun
Hi, I have an include file which I use to check all input. if there is a problem the user is redirected to the page they came from if(!mysql_query($query)){ $error = "Could not complete query"; header("Location: file.php?error=$error"); exit; } However in file.php I have included $_POST

Re: [PHP] problem with $_POST

2002-08-14 Thread Bas Jobsen
Op woensdag 14 augustus 2002 20:57, schreef Adam Williams: > Does anyone know why it is not working with $_POST but works fine with > $_GET? I don't know, but maybe you has to put "" around POST, method="POST". It works then with GET, cause that's default. Maybe something else is wrong, so met

[PHP] problem with $_POST

2002-08-14 Thread Adam Williams
Hi, I am having a problem with $_POST which I will explain below. My configuration is Redhat 7.3 Linux 2.4.18 with Apache 2.0.39, PHP 4.2.2, and MySQL 3.23.49. I have an SQL table which was created by: CREATE TABLE testTable (id nut null primary key aut_increment, testField varchar (75)); I h