-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|428|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-




Afr0

POSTing shit...

13th April 2011

[quote]Also again, you don't need to use echo. It's much more readable to use close the PHP tag and then write the form as pure HTML.
It also allows you to write less (which is always a good thing)![/quote]
echo allows for much more flexible code, as it *snip*


Afr0

POSTing shit...

13th April 2011

[quote]Does that make sense?[/quote]
Nope. Trust me, I tried using $_POST. It worked fine with a single form. But when getting data from multiple forms with the same control, it kept returning the same data all the time!
(See the code in the first post i*snip*


Afr0

Game preservation

13th April 2011

These teams aren't "taking" the products though, we're not earning anything. We're just making sure that people can actually use the products that they actually paid for (especially in the case of TSO, since the servers were shut down).
Sure, there's alwa*snip*


Afr0

POSTing shit...

13th April 2011

$_POST is out of the question, because it doesn't work when you're POSTing a value from several controls with the same name and you don't know which control was POSTed from.
$_REQUEST just works, instantly...


Afr0

POSTing shit...

13th April 2011

Thanks Stealth!
If you have a solution for my problem that does not involve using $_REQUEST, please say so...


Afr0

Game preservation

13th April 2011

Obviously it is legal if you write the source. How'd you think they got the sourcecode?


Afr0

Game preservation

13th April 2011

This isn't so much a topic up for debate as a topic to inform. Recently there's been alot of work on the net from various teams and individuals aimed towards restoring classic games as opensource projects.
I think this is awesome. Therefore I will now pre*snip*


Afr0

POSTing shit...

13th April 2011

Wtf?!
I found out I needed a form with another hidden field to indicate if I wanted to delete news (maintaining state with HTML can be kinda complex and unintuitive), but for some reason the browser (I tested it in Internet Explorer in addition to Chrome,*snip*


Afr0

POSTing shit...

12th April 2011

(Image.jpg)
(Image.jpg)
This works. It isn't very practical for large tables, but it works. Now I just have to limit my query to the last 10,000 newsitems.


Afr0

POSTing shit...

12th April 2011

See my above edit ^


Afr0

POSTing shit...

12th April 2011

[quote=DiablosDevil]
Then why are you using hidden fields?
[/quote]
Because I tried using labels to show the news on the frontpage, and they required me to attach the label to a control!! I also couldn't figure out how to get a specific newsitem when PO*snip*


Afr0

POSTing shit...

12th April 2011

By the way, I was wondering... assuming one has a million newsitems in a table, how would one select only the last 10,000 newsitems and display them on the frontpage?


Afr0

POSTing shit...

12th April 2011

Why do think I would want to resubmit it?
Because I want to have the capability to edit newsitems.
...
I fixed it.
From index.php:
[code] mysql_select_db("gpartner", $Connection);

//Run a query to get all the newsitems in the DB.
$Query = mysq*snip*


Afr0

Random Telephone Number

12th April 2011

wut? UK has 11?
Honestly, how many people do you have living down there in farmland?
(Norway only has three digits for area-code, and I thought it was quite common in Europe in general. AFAIK they have the same setup in Denmark, Sweden and Finland).


Afr0

POSTing shit...

12th April 2011

I'm trying to POST a newsitem to a PHP script, but it keeps submitting the same thing all the time. Help?
[code] //Run a query to get all the newsitems in the DB.
$Query = mysql_query("SELECT * FROM newsitems", $Connection);

while($Row = mysql_fet*snip*


Afr0

Random Telephone Number

12th April 2011

Phone numbers aren't ten digits. They're eight. Unless you're using international area codes as well.


Afr0

Yo momma

10th April 2011

lol


Afr0

Government Shutdown

8th April 2011

Just a theory, but... I'm pretty sure this wouldn't have happened if CPUSA were in charge.
That said, fuck the GOP!


Afr0

scrap the forum?

7th April 2011

That, and the shoutbox has always annoyed me because... it kind of looks and functions like a chat, so you expect people to answer fast, but when they don't it's just annoying.
So I prefer [the forum] threads.


Afr0

Yo momma

7th April 2011

:o


Afr0

Yo momma

7th April 2011

I'm... not quite... sure...
How would sitting on a toilet cause it to spill over?


Afr0

Yo momma

7th April 2011

Your mother is so fat that the recursive function calculating her mass caused a stack overflow


Afr0

Proms

6th April 2011

Yes, here as well, but I always liked the British proms better. :)


Afr0

Proms

5th April 2011

(From 2008)
Was quite good, that one!


Afr0

Proms

5th April 2011

Hm? Why not?

Newer Posts More - Older Posts