Hey everyone,
This is my first post in this fine establishment and was wondering if anybody could help me out. So I have a website that is for college students and i am wanting to expand it to other campuses. Right now it focuses on my school with content geared towrds student at my school but i want to expand. The website is campusgoal.com and if you look in the upper left hand corner i have a link to my schools main page. Also if you look at the bottom left i have a weather updater for my city. Now my knowledge in php and using cookies is very little but i have managed to create a table the has form but no funtion.
<?php
setcookie("weather");
setcookie("schoollink");
?>
<form method="post" name="cookie" action="process.php">
<p>
<label for="username">Enter the name of your University Or College. <br>
(ex:colorado state university)
: <input type="text" name="username" id="username" /></label></p>
<p>
<label for="password">Enter ZIP Code for local weather :
<input type="password" name="password" id="password" /></label></p>
<p><label for="setcookie"><input type="checkbox" name="setcookie" value="setcookie" " /> Remember My Homepage</label>
</p>
<p><input type="submit" name="submit" value="Submit" /> <input type="reset" name="reset" value="Reset" /></p>
</form>
Now for my question (thanks for sticking with me). Is there a way i can create a cookie that would call up html for certain cities when a zip code is enterd and a graphic link when a school name is entered? I have an example of the html that would be used for the weather in surrounding cities.
<!--Weather image provided by www.areacodehelp.com--><a href="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?pands=fort collins, co" target="_blank"><img src="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?config=png&forecast=zone&alt=hwizone&pands=fort collins, co&hwvbg=FFFFFF&hwvtc=B5OCOO&hwvusettf=0" alt="Zone Forecast for Fort Collins, CO" border="0" /></a>
<!--Weather image provided by www.areacodehelp.com--><a href="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?pands=greeley, co" target="_blank"><img src="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?config=png&forecast=zone&alt=hwizone&pands=greeley, co&hwvbg=FFFFFF&hwvtc=B5OCOO&hwvusettf=0" alt="Zone Forecast for Greeley, CO" border="0" /></a>
<!--Weather image provided by www.areacodehelp.com--><a href="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?pands=boulder, co" target="_blank"><img src="http://www.areacodehelp.com/cgi-bin/weather/weather.cgi?config=png&forecast=zone&alt=hwizone&pands=boulder, co&hwvbg=FFFFFF&hwvtc=B5OCOO&hwvusettf=0" alt="Zone Forecast for Boulder, CO" border="0" /></a>
I know this is complicated but i have very little knowledge in coding and programming and any help would be appreciated.