xmlhttpservice.php

来自「php for flash 之應用試試看」· PHP 代码 · 共 28 行

PHP
28
字号
<?php

    ////////////////////////////////////////////////////////////////////////////////
    // ADOBE SYSTEMS INCORPORATED
    // Copyright 2007 Adobe Systems Incorporated
    // All Rights Reserved.
    //
    // NOTICE:  Adobe permits you to use, modify, and distribute this file in accordance with the 
    // terms of the Adobe license agreement accompanying it.  If you have received this file from a 
    // source other than Adobe, then your use, modification, or distribution of it requires the prior 
    // written permission of Adobe.
    ////////////////////////////////////////////////////////////////////////////////
    //
    //  shipping.php contains our get_shipping_options($zipcode, $pounds) function.
    //  It returns an array mapping service name to price in US dollars.
    require('shipping.php');

    $options = get_shipping_options($_REQUEST["zipcode"], $_REQUEST["pounds"]);

    $results[] = "<options>";
    foreach ($options as $service => $price) {
        $results[] = "<option><service>$service</service><price>$price</price></option>";
    }
    $results[] = "</options>";
    print implode("\n", $results);
?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?