Search found 9 matches
- Thu Sep 18, 2008 2:02 pm
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
- Thu Sep 18, 2008 12:06 pm
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
Re: code to change php depending on user input
I still cant quite work out how to implement it though....
Did you see my previous post. Does it makes sense?
How would i use the value submitted through the drop down box to the code defining the rss feed.
Cheers.
Did you see my previous post. Does it makes sense?
How would i use the value submitted through the drop down box to the code defining the rss feed.
Cheers.
- Thu Sep 18, 2008 11:35 am
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
Re: code to change php depending on user input
basiacally here's what ive got - <?php function retrieveYahooWeather($zipCode="UKXX0018") { $yahooUrl = "http://weather.yahooapis.com/forecastrss"; $yahooZip = "?p=$zipCode&u=c"; $yahooFullUrl = $yahooUrl . $yahooZip; $curlObject = curl_init(); c...
- Thu Sep 18, 2008 11:27 am
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
Re: code to change php depending on user input
hey, that looks spot on!
So can i use location as a variable?
ie-
And then use $variable in the php code?
Thank you so much for your help.
So can i use location as a variable?
ie-
Code: Select all
<? php
$variable=location
?>Thank you so much for your help.
- Thu Sep 18, 2008 11:10 am
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
Re: code to change php depending on user input
i don't mind the page refreshing. I have been looking in to it and am i right in thinking that i can do it with a drop down box. Each option having a value (which will be the new url). My problem is then assigning the submitted option to a php variable........... How would i do it? Thanks for your h...
- Thu Sep 18, 2008 9:31 am
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
Re: code to change php depending on user input
any ideas anyone?
- Wed Sep 17, 2008 4:15 pm
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
Re: code to change php depending on user input
sorry. I'm obviously not aking myself clear. I am not interested in saving or preserving the users location. This is what i want to happen. Someone comes to the site. They choose from a list of predefined locations. Their choice changes the rss feed url. Saving it is not a problem at the moment. I j...
- Wed Sep 17, 2008 3:47 pm
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
Re: code to change php depending on user input
No i'm not saving the info anywhere. The site is not running from a database. When i said users i meant anyone visiting the site.
How would i enable them to change the feed?
Thanks for your help
How would i enable them to change the feed?
Thanks for your help
- Wed Sep 17, 2008 12:03 pm
- Forum: PHP - Code
- Topic: code to change php depending on user input
- Replies: 13
- Views: 856
code to change php depending on user input
Hi there, I am trying to work out how to do the following. I have an rss feed on my site that is location based (it's a weather feed). However i need to be able to offer multiple rss feeds for different locations. I have all the rss feed urls for the various locations but need some way of replacing ...