|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
What might be a possible reason why a header would not advance to the url that it's supposed to go?
Here's the script: <? require("Cart.php3"); DBinfo(); Root(); mysql_connect("$DBHost","$DBUser","$DBPass"); mysql("$DBName","INSERT INTO CartItems VALUES ('$UID','$ItemID','$ItemQuantity','$Date','$CartItemsID')"); Header("Location: $Relative/viewCart.php3?UID=$UID"); ?> tia Jay |
|
#2
|
|||
|
|||
|
Have you not noticed that this is a PERL forum? PHP is not Perl.
------------------ The three virtues of a programmer: Impatience, Hubris, Caffeine Addicition. |
|
#3
|
|||
|
|||
|
Yes, I realized that after I posted.....It was an accident. But thanks for posting it to my attention! Genius of you.
|
|
#4
|
|||
|
|||
|
I'm not sure if PHP handles this for you automagically, but you don't have any newlines after your Location header.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > headers |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|