Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2003-06-03, 01:21 PM
Need's Help
Guest
 
Posts: n/a
Default

hello, this is been one heck of a day tring to get this to work...

I've got PHP iinstalled on my ISS server, yet I can not use the get method to pass data from a form into a php page.

I've come to the conclusion that somehow the get method donsn't work on my current setup, as even downloadable example don't pass the data to the second page.

Does anybody know how to set up PHP/ISS so that I can use the get method on the forum?

Thanks.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2003-06-03, 05:29 PM
stuart's Avatar
Administrator
 
Join Date: Jan 2003
Location: Scotland
Posts: 472
stuart will become famous soon enoughstuart will become famous soon enough
Send a message via MSN to stuart
Default

Do you mean IIS? I dont have any experience with ISS, but here is a few questions/thoughts anyway:

What happens when you manually append a querystring? do you have acces to that variable? - for example if you type in 'page.php?test=cool' and in the page 'page.php' have the script 'echo $_GET['test']'

What error do you get (if any).

Does POST work fine?

is register globals on or off?

what version of php is this?

just need a few more details
Reply With Quote
  #3 (permalink)  
Old 2003-06-03, 07:13 PM
need's help
Guest
 
Posts: n/a
Default

thanks for the reply...

I just started messinf with php yesterday...

Anyhow -
Yes, its IIS my typo.
PHP 4.3.2 (newset one on the php.net site), I used the windows installer and had it automically configure with IIS.

register globals are on, I changed that in an attepmt to get it to work.

I tried what you have posted and it works great, it displays exactally what it sould.

The line that is being passed on is like this:

Code:
orechart.php3?cargo=120&tri=1&pye=4&mex=16&iso=64&nox=256&zdy=1024&meg=4096
Maybe this is where I am confused, but how would I go about getting that data into the variables in the script page?

Can't I just use the "$cargo = cargo" line?
Reply With Quote
  #4 (permalink)  
Old 2003-06-04, 04:05 AM
stuart's Avatar
Administrator
 
Join Date: Jan 2003
Location: Scotland
Posts: 472
stuart will become famous soon enoughstuart will become famous soon enough
Send a message via MSN to stuart
Default

all variables that exist in you querystring are automatically available to your script and available through the $_GET[''] super globals, so you dont need to reassign variables to them.

for example if you querystring variable is myname=stuart, you can call this by using $_GET['myname'] (which has the value stuart).

Maybe a read through some tutorials and the manuals would help as would a good book.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:06 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.