Recent Topics

1 Oct 01, 2005 02:28    

I'm using a couple simple mail forms for our b2evo blog system.
http://infoshop.org/infocities/blogs/
(check "sign-up" links at top)

Here's our php_info() file:
http://infoshop.org/infocities/blogs/phpinfo.php

And I tried to beat register_globals by using $_SERVER['PHP_SELF'] but to no avail. The form reads the php_self directory position from where it originated, not where it currently is.

I think our php.ini is set to register_globals off, but we'd like to keep them off server/site wide.

I tried the same forms on a different server (with RG on) and they worked fine.

Is it RG or could it be something like safe mode or some other php thing?

Plus if you notice on the front page the blog links go to "?blog=#" not "index.php?blog=#" like normal (another problem with php_self that I tried to fix). Do I need $_GET['blog'] or something?

Any help would be great, it's like two weeks I'm banging my head against the wall here.

2 Oct 25, 2005 18:31

I fixed the RG by superglobaling everything. Surprise, mail forms send perfectly now.

Well the PHP_SELF was fixed not with superglobals but by inserting:

echo($Blog->disp( 'blogurl', 'raw' ));

And that did the trick.

I admonish anyone and everyone for not answering to my stupid question that with a little work I fixed myself.


Form is loading...