My Quake 3 Config maker...

S

Sar

Guest
Ok, for the last few months I've left this, as I had other more important things to attend to, but now I have the time to sort this out.

Basically, my Config Maker isn't working, and I think it may have been the change in PHP to register_globals to OFF (I think - I'm a n00b at PHP).

The input takes the form:

Code:
[b]<font size="2">Name</font>


                <input type="text" name="pn1" size="20">

                [/b]</font></p>

And the generated page grabs this information in the form of a variable named $pn1 and prints it like so:

Code:
print("
seta name \"$pn1\"\n");

("seta name" is a Q3 console variable to set the players name via the q3.cfg file)

Any ideas as to how to either re-write this, or to get it working some other way?

As I said, this config generator in itself was a major achievement for me, as I know practically nothing about PHP, html is my limit I'm afraid.

TIA.

:)
 
F

FatBusinessman

Guest
You're right - this has stopped working due to the change of register_globals. What you want to do depends on whether the form you use to input the data uses the GET or POST methods. If it's GET, you want to replace $pn1 with $_GET["pn1"], if it's POST, you replace it with $_POST["pn1"].

Should sort your problem.
 
S

Sar

Guest
Ta FBM, Jonty got in there first however.

:D

Thanks to both of you though, as it's now working again :)
 

Users who are viewing this thread

Similar threads

S
Replies
3
Views
2K
FatBusinessman
F
I
Replies
1
Views
546
Testin da Cable
T
W
Replies
2
Views
983
WPKenny
W
W
Replies
4
Views
653
wyrd_fish
W
W
Replies
3
Views
920
wyrd_fish
W
Top Bottom