Jump to content

Yahoo! Weather


Karlos94

Recommended Posts

Right, I am trying to create a small application here, for example picture this..

 

I start off with a table like this (just to let you know this table is bare minimum):

City

Current Weather

London

Get

New York

Get

 

Right, when I click get I'd like to have an extra <tr> tag appear and slide down so I can fit in the response from Yahoo! Weather RSS feed. However, I don't want to explicity define the ZIP code within a hidden input field as that will decrease security, I wish to have the information within a array or comming from a database. For example, I'll do it an array to show how I mean:

 

$city = array(
    array(
        'name' => 'Beijing',
        'zip_code' => 'CHXX0008'
    ),
    array(
        'name' => 'Moscow',
        'zip_code' => 'RSXX0063'
    ),
    array(
        'name' => 'Paris',
        'zip_code' => 'FRXX0076'
    ),
    array(
        'name' => 'Tokyo',
        'zip_code' => 'JAXX0085'
    )
);

 

Any help here? Much appreciated if so!

 

Regards, Karlos94

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.