[PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Michael Calkins

I would google this but I have no idea what this method is or how it works.
app.php?ph=cusid=4
Can some tell me what this either called or how it works?Can I get a tutorial 
for it please?
Thank you!

From,Michael Calkins

elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility
  
_
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

Re: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Ashley Sheridan
On Fri, 2010-06-04 at 06:54 -0700, Michael Calkins wrote:

 I would google this but I have no idea what this method is or how it works.
 app.php?ph=cusid=4
 Can some tell me what this either called or how it works?Can I get a tutorial 
 for it please?
 Thank you!
 
 From,Michael Calkins
 
 elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility
 
 _
 The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
 Hotmail. 
 http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5


That's a URL with GET data. It's not anything special to PHP, it's just
the way data can be passed around in the URL.

Thanks,
Ash
http://www.ashleysheridan.co.uk




RE: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Michael Calkins

How is it used for a website then?

From,Michael Calkins



 From: a...@ashleysheridan.co.uk
 To: michaelcalk...@live.com
 CC: php-general@lists.php.net
 Date: Fri, 4 Jun 2010 14:59:15 +0100
 Subject: Re: [PHP] What is app.php?ph=cusid=4?
 
 On Fri, 2010-06-04 at 06:54 -0700, Michael Calkins wrote:
 
  I would google this but I have no idea what this method is or how it works.
  app.php?ph=cusid=4
  Can some tell me what this either called or how it works?Can I get a 
  tutorial for it please?
  Thank you!
  
  From,Michael Calkins
  
  elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility

  _
  The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
  Hotmail. 
  http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
 
 
 That's a URL with GET data. It's not anything special to PHP, it's just
 the way data can be passed around in the URL.
 
 Thanks,
 Ash
 http://www.ashleysheridan.co.uk
 
 
elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

Re: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Midhun Girish
Depends on the server side language u intend to use...
In php u can get those data via the super global array $_GET.. And u can
use it anyway u want...


Midhun Girish
Development Lead
MobAlive Technologies


On Fri, Jun 4, 2010 at 7:45 PM, Michael Calkins michaelcalk...@live.comwrote:


 How is it used for a website then?

 From,Michael Calkins



  From: a...@ashleysheridan.co.uk
  To: michaelcalk...@live.com
  CC: php-general@lists.php.net
  Date: Fri, 4 Jun 2010 14:59:15 +0100
  Subject: Re: [PHP] What is app.php?ph=cusid=4?
 
  On Fri, 2010-06-04 at 06:54 -0700, Michael Calkins wrote:
 
   I would google this but I have no idea what this method is or how it
 works.
   app.php?ph=cusid=4
   Can some tell me what this either called or how it works?Can I get a
 tutorial for it please?
   Thank you!
  
   From,Michael Calkins
  
  
 elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility
   _
   The New Busy think 9 to 5 is a cute idea. Combine multiple calendars
 with Hotmail.
  
 http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5
 
 
  That's a URL with GET data. It's not anything special to PHP, it's just
  the way data can be passed around in the URL.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 

 elementFontfont-familyfont-sizefont-stylefont-variantfont-weightletter-spacingline-heighttext-decorationtext-aligntext-indenttext-transformwhite-spaceword-spacingcolorBackgroundbg-attachmentbg-colorbg-imagebg-positionbg-repeatBoxwidthheightborder-topborder-rightborder-bottomborder-leftmarginpaddingmax-heightmin-heightmax-widthmin-widthoutline-coloroutline-styleoutline-widthPositioningpositiontopbottomrightleftfloatdisplayclearz-indexListlist-style-imagelist-style-typelist-style-positionTablevertical-alignborder-collapseborder-spacingcaption-sideempty-cellstable-layoutEffectstext-shadow-webkit-box-shadowborder-radiusOtheroverflowcursorvisibility
 _
 Hotmail is redefining busy with tools for the New Busy. Get more from your
 inbox.

 http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2


Re: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Ken Kixmoeller

Michael Calkins wrote:

How is it used for a website then?


Some program is using the ID 4 and the value of cus to bring up 
information you requested on a prior page. Probably to query a database 
for those values.


As Ashley said: it is GET ($_GET) data in a URL -- a way to pass values 
from one page to another using the URL.


Look up $_GET or Predefined Variables in the PHP documentation online.

If that doesn't help, you need to buy the most basic book on web 
programming you can find (and read it).


Ken

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread tedd

At 7:15 AM -0700 6/4/10, Michael Calkins wrote:

How is it used for a website then?


It's just data received by a $_GET[] (data in the url) such as:

?php
$whatever = $_GET['ph'];
$id = $_GET['id'];

Then you can use that data (after scrubbing) to obtain data from a 
database, such as:


SELECT cost FROM items WHERE whatever='$whatever' AND id = '$id'

From that you could get the cost of the item and use it in your script.

This is just one way to send data from one page/script to another.

Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Daniel Brown
On Fri, Jun 4, 2010 at 09:54, Michael Calkins michaelcalk...@live.com wrote:

 I would google this but I have no idea what this method is or how it works.
 app.php?ph=cusid=4
 Can some tell me what this either called or how it works?Can I get a tutorial 
 for it please?

Split up, it is:

app.php The filename and extension
?ph=cusid=4 An HTTP query string

?   Start of HTTP query string
ph A parameter name 'ph' which is
accessible in this case via the $_GET superglobal array
=   The equals operator assigns a value to
a variable
cusThe value of the parameter 'ph'
assigned in the HTTP query string given
  The ampersand indicates that another
parameter (variable) will be concatenated with the HTTP query string
id  A second parameter name 'id'
=   Again, for variable assignment
4   The value of the 'id' variable
assigned in the HTTP query string given

To read this information, the app.php script could be accessed in
a regular web browser with the query string given appended as you
provided.  If it's accessed via an HTTP request to a web server or
other PHP-enabled application, the code to parse the information could
be as follows:

?php

/***
  * To see if a specific parameter was passed within
  * the HTTP query string, we can simple check the
  * $_GET superglobal like any other array, like so:
  */
if (isset($_GET['foo'])) {
echo The 'foo' parameter was passed to me, and equals '.$foo.';
}

// Simple check to see if a variable equals a static value or not
if ($_GET['ph'] == 'cus') {
echo Yes, 'ph' equals 'cus'.;
} else {
echo No, 'ph' does not equal 'cus'.;
}

// Dump the array to the screen without basic details
var_dump($_GET);

// Dump the array without details, but with simple text formatting
echo pre.PHP_EOL;
print_r($_GET);
echo /pre.PHP_EOL;

// Print it all out with basic formatting
foreach ($_GET as $k = $v) {
echo b.$k. = .$v.br /.PHP_EOL;
}
?


For more information, check the PHP manual and Google for
superglobals and the fundamentals of using PHP in a web-based
environment.

-- 
/Daniel P. Brown
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
We now offer SAME-DAY SETUP on a new line of servers!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] What is app.php?ph=cusid=4?

2010-06-04 Thread Paul M Foster
On Fri, Jun 04, 2010 at 06:54:34AM -0700, Michael Calkins wrote:

 
 I would google this but I have no idea what this method is or how it works.
 app.php?ph=cusid=4
 Can some tell me what this either called or how it works?Can I get a tutorial 
 for it please?

This is standard HTTP/HTML terminology, not unique to PHP. What is means
is that the script being executed (app.php) has been supplied two
parameters: ph and id.

app.php is a script that can perform various functions, depending on the
parameters passed to it. For example, app.php may display a record from
a database. And in this case, app.php may be tasked to display a
customer record, and the customer record it should display is the one
where the customer number is 4.

Syntax-wise, after the name of the script (app.php), are whatever
parameters, if any, the script requires. The first question mark begins
the list of parameters. Each parameter normally will be in the form

parameter=value

In between each of these parameter/value pairs, you will find an
ampersand (). So in this case, you have two parameters being passed.
The first is ph, and its value is cus. The second is id and its
value is 4. What these parameters mean exactly to the script depends
on the script. There's no universal guide for parameters, what they're
called or what their values can be. You'd have to look at the script
itself to see what the parameters make the script do.

In PHP, if you want to use these parameters, you would query the
parameters this way:

$page_type = $_GET['ph'];
$which_item = $_GET['id'];

If executed this way, you would find that $page_type has a value of
'cus', and $which_item = '4'.

You might have code inside app.php which would look like the following:

$type = $_GET['ph'];
$id = $_GET['id'];

if ($type == 'cus')
show_customer_page($id);

Hope that helps.

Paul

-- 
Paul M. Foster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php