hello
i want a code when i enter a zip code and get data in another site.
example:
when i click in this site "http://www.congress.org/congressorg/dbq/officials/" and enter a code this "77057-3163" and u can see a information about elected information .and now i want when i enter a zip code in our site then i get this information in our site.pls tell is it possible and say yes then give me a solution what i do?
i want code when enter a zip code.......
Moderator: General Moderators
-
ashish.a1dezine
- Forum Newbie
- Posts: 4
- Joined: Tue Apr 06, 2010 3:35 am
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: i want code when enter a zip code.......
The short answer is that you would use a server side language like PHP. You would first get the value submitted from the form. Then validate it to make sure it was in the right format and was not an attempt to hack your site. Then use the value to fetch matching records from a database. And finally generate a HTML page with the values from the database in it.
However there are obviously a lot of details. I would recommend getting a PHP book with examples similar to what you want to do, or take a PHP class.
However there are obviously a lot of details. I would recommend getting a PHP book with examples similar to what you want to do, or take a PHP class.
(#10850)
-
ashish.a1dezine
- Forum Newbie
- Posts: 4
- Joined: Tue Apr 06, 2010 3:35 am
Re: i want code when enter a zip code.......
hello sir i think u can not understand what i want.
yes sir i m using php .but i have no database and i want to see this record in my site .is it possible or not.
means sir
when i enter a zip code in this url "http://www.congress.org/congressorg/dbq/officials/" pls open it and enter the code "77057-3163" and see the information this type
"President & Congress Governor & State Legislators
President
• Barack Obama (D)
Senators
• Kay Bailey Hutchison (R)
• John Cornyn (R)
Representatives
• John Culberson (R-7)
Governor
• Rick Perry (R)
Senate
• Dan Patrick (R-7)
House of Representatives
• Beverly Woolley (R-136)"
and i want that i have a form and i enter zip code number and i get this information without using database means i have not using our database i m using this site "http://www.congress.org/congressorg/dbq/officials/" database .is it possible that we can show this record in our site using api and any other ........pls help me its very important...........
yes sir i m using php .but i have no database and i want to see this record in my site .is it possible or not.
means sir
when i enter a zip code in this url "http://www.congress.org/congressorg/dbq/officials/" pls open it and enter the code "77057-3163" and see the information this type
"President & Congress Governor & State Legislators
President
• Barack Obama (D)
Senators
• Kay Bailey Hutchison (R)
• John Cornyn (R)
Representatives
• John Culberson (R-7)
Governor
• Rick Perry (R)
Senate
• Dan Patrick (R-7)
House of Representatives
• Beverly Woolley (R-136)"
and i want that i have a form and i enter zip code number and i get this information without using database means i have not using our database i m using this site "http://www.congress.org/congressorg/dbq/officials/" database .is it possible that we can show this record in our site using api and any other ........pls help me its very important...........
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: i want code when enter a zip code.......
I don't know if that site has an API. They do have this: http://www.congress.org/congressorg/remotecontent/
(#10850)
-
ashish.a1dezine
- Forum Newbie
- Posts: 4
- Joined: Tue Apr 06, 2010 3:35 am
Re: i want code when enter a zip code.......
hi u give a link that i m taking code this place but he was not enough please send send api link.