Previous Thread
Next Thread
Print Thread
Rate Thread
#104032 04/02/2001 10:34 PM
Joined: Mar 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 11
If I m being too lame just flame me wink

how does the end of .php extension generates those numbers like:

.php?threadid=10590

or other things at the end..
are they generated by SQL? are they goin to be generated everytime i make a new php and run it ?

regards

Sponsored Links
Joined: Oct 2000
Posts: 76
Member
Member
Offline
Joined: Oct 2000
Posts: 76
smile im a beginner and I "think" that is a query. Its generated by the server and sends the info back to your browser in that url form.

Im not 100% sure though.

-Ghoste

Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
Thats a Form input. Information is passed to servers either using form fields or cookies.

The server script get this information and process it, using it for queries to a database or whatever. Then it displays a page with the processed information.

There are two methods of passing information using forms. One is Get, which will display this information in the address (unless the field is a Password or button type) like you wrote, separating them with "?", like ?fieldname=value?fieldname2=value2 . The other one is Post, which will not show the information in the address.

I suggest taking a look at HTML Form coding to see how this is done inside an html. Here's a brief example, anyway






Submitting this will create this code after the script name:

?myname=itsecret

lol enough.

Joined: Mar 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 11
WHA!!
cool thanks man that explains it now ;]]]
can you actually put regular html in PHP's and will it still work ? ;]

[ April 03, 2001: Message edited by: d1rX ]

Joined: Dec 2000
Posts: 595
Member
Member
Offline
Joined: Dec 2000
Posts: 595
php is an html file renamed to .php (or not if configured), where you put this



inside and the code is interpreted by the server.

you can find more information here if you want, under "documentation" http://www.php.net/

Sponsored Links
Joined: Mar 2001
Posts: 11
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 11
WEEEEEEEE
cool thing mate
thanks again ;]]]


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)