|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1 |
Certified Nice Person
|
Fucking PHP
![]() Any guesses on why a php form using 'post' would not work? It has worked just dandy on 3-4 consecutive hosts, but doesn't do anything except reload the page on my newest one. No errors are printed, not even if the form is left blank.
__________________
Click here to purchase a bridge I'm selling. |
![]() |
![]() |
![]() |
#2 |
Internet! Is that thing still around?
|
i'd guess that it's because on your new host register_globals is off. Does your code rely on register_globals being on?
run phpinfo() to see if it is set to off or on. what does var_dump($_POST) show when you put it on the top of your script that processes the form data? hth rich
__________________
ICQ# 6820996 |
![]() |
![]() |
![]() |
#3 |
Certified Nice Person
|
Yup, globals are off. I've got a ticket into my host now to edit my php.ini. I shell'd in and tried to edit it myself, but it said I didn't have permission. Don't know why I have root access if I can't do anything...
var_dump($_POST) produces an error. Thank you, fingers crossed.
__________________
Click here to purchase a bridge I'm selling. |
![]() |
![]() |
![]() |
#4 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
in your .htaccess, try
php_flag register_globals on
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
![]() |
#5 | |
Certified Nice Person
|
Quote:
Thanks, Chris - it works like a charm.
__________________
Click here to purchase a bridge I'm selling. |
|
![]() |
![]() |
![]() |
#6 |
Internet! Is that thing still around?
|
if your script ain't too complex then try and get it changed to to run in a globals off compliant fashion as that will run fine in both scenarios and will be future proof for when php drops support completely for register_globals....
just a thought ![]() rich
__________________
ICQ# 6820996 |
![]() |
![]() |
![]() |
#7 |
I'm not interested in the facts, I'm interested in my opinion.
|
Did you try banging or kicking the side of your harddrive?
That use to work on an old TV of mine. |
![]() |
![]() |
![]() |
#8 |
Eighteen 'til I Die
|
Damn, I came in here thinking I was going to read a racy story about a new lady with the initials PHP.
In additon to being a smart cocksucker, Sparky has to be a nice guy. |
![]() |
![]() |
![]() |
#9 | |
You can now put whatever you want in this space :)
Join Date: May 2004
Posts: 631
|
Quote:
![]()
__________________
Brihana.com |
|
![]() |
![]() |
![]() |
|
|