Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
The use in ? in php

 
Post new topic   Reply to topic Printable version
 View previous topic  something useless Post :: Post getline() with visual c++  View next topic  
Author Message
tcsoccerman
Server Help Squatter


Age:26
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Mon Oct 13, 2008 4:16 pm    Post subject: The use in ? in php Reply to topic Reply with quote

This was hard to google, and didn't return right results. The question is, what does the ? in a php url represent? For example, the url i am in right now on these forums is http://forums.minegoboom.com/makepost.php?mode=createpost&f=21

so does that mean $_SESSION['mode'] = 'createpost';? and i guess $_SESSION['f'] = 21?

-tcsoccerman

Also, is their a name for this "?" usage?
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:34
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3603
Location: Las Vegas
Offline

PostPosted: Mon Oct 13, 2008 4:37 pm    Post subject: Reply to topic Reply with quote

Query string. And in PHP, it would be $_GET or $_REQUEST, not session.
Back to top
View users profile Send private message Add User to Ignore List Send email
k0zy
Server Help Squatter


Gender:Gender:Male
Joined: Jan 11 2003
Posts: 571
Location: Germany
Offline

PostPosted: Mon Oct 13, 2008 4:39 pm    Post subject: Reply to topic Reply with quote

There are two ways to submit form data.
GET and POST.

The one with the ? is the GET way. Where the form data is appended to the url in name-value-pairs.

To access the data in php you have to do $_GET['nameofthevariable']

http://www.w3schools.com/PHP/php_get.asp
_________________
It's a shark! Oh my god! Unbelievable!
Back to top
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:26
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Mon Oct 13, 2008 4:51 pm    Post subject: Reply to topic Reply with quote

Thanks for the quick replies, very clear now.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Samapico
No, these DO NOT look like penises, ok?


Age:32
Gender:Gender:Male
Joined: May 08 2003
Posts: 1252
Location: Montreal, Canada
Offline

PostPosted: Mon Oct 13, 2008 8:03 pm    Post subject: Reply to topic Reply with quote

Cool... I just learned some php too
_________________
DCME co-developer
17th Parallel Head Sysop
Subspace: The Future
Back to top
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:26
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Fri Oct 17, 2008 4:47 pm    Post subject: Reply to topic Reply with quote

Also, on the php topic, now that i've finished my template, how do i include that in all of my other webpages. I suppose i could copy and paste but that seems even still, too inefficient. For example, after i finish my website and i notice a typo, it would be great to edit 1 file and fix the typo on all pages with that template.

thanks again

-tcsoccerman
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Adam01
Novice


Joined: Oct 03 2008
Posts: 51
Offline

PostPosted: Fri Oct 17, 2008 4:50 pm    Post subject: Reply to topic Reply with quote

try:
include(phpfile.php);
Back to top
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:26
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Fri Oct 17, 2008 4:53 pm    Post subject: Reply to topic Reply with quote

thanks! now, i couldn't get php on my computer and i don't have a host yet so, when you say try, do you mean that is the answer? well, i will just google it.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Adam01
Novice


Joined: Oct 03 2008
Posts: 51
Offline

PostPosted: Fri Oct 17, 2008 5:52 pm    Post subject: Reply to topic Reply with quote

Why dont you use a free host?
Or iis with php (hard to set up)
x10hosting is a great php and mysql hoster.
What do I mean by try? It is a possible answer.
Back to top
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:26
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Fri Oct 17, 2008 6:27 pm    Post subject: Reply to topic Reply with quote

i guess you need cpanel for x10hosting
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Adam01
Novice


Joined: Oct 03 2008
Posts: 51
Offline

PostPosted: Fri Oct 17, 2008 7:13 pm    Post subject: Reply to topic Reply with quote

It comes with it.
Back to top
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:26
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Mon Nov 03, 2008 10:22 pm    Post subject: Reply to topic Reply with quote

Nevermind
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Non-Subspace Related Coding All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 116 page(s) served in previous 5 minutes.

phpBB Created this page in 0.165066 seconds : 37 queries executed (28.5%): GZIP compression disabled