Jump to content

sandecki

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sandecki's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey everyone, I have a simple question and hopefully someone can be kind enough to help . I need to make a simple php script\form to do the following.... 1. Allow some to enter their zipcode in the text field & hit submit. 2. This will then open a new browser page with the following URL below... http://www.google.com/maps?f=q&hl=en&geocode=&q=self+storage+ZIPCODEHERE&ie=UTF8&z=12&om=1 The bolded text is where the zipcode should of been inserted. The entire URL must stay intact, I just need this simple thing and my lack of php knowledge really makes it awful, hopefully someone can help. I'd like to give thanks very much to whoever decides to help me with this!
  2. [code]<?php $path = '.';   $files=array();   if ($handle=opendir("$path")) {       while(false !== ($file = readdir($handle))) {                  if ($file != "." && $file != "..") {                 substr($file,-3)=='gif'; substr($file,-3)=='jpg'; substr($file,-3)=='jpeg'; substr($file,-3)=='png'; $files[count($files)] = $file;                 }       }   }   closedir($handle);   $random=rand(0,count($files)-1);   if(substr($files[$random],-3)=='gif') header("Content-type: image/gif");   elseif(substr($files[$random],-3)=='jpg') header("Content-type: image/jpeg");   elseif(substr($files[$random],-3)=='jpeg') header("Content-type: image/jpeg");   elseif(substr($files[$random],-3)=='png') header("Content-type: image/png");   readfile("$path/$files[$random]"); ?> [/code] The above is a random image script, it is used to put a random picture on the front page of my website. The URL to this website is www.nowthatshumor.com if you need an example of what I'm asking.  I'm not that good at PHP but I'm sure this is quick simple. I'm looking how to edit the above so it displays a text link saying 'Add to Myspace' and will open a new window with the HTML code i wish to display. I'd greatly apperciate this very much. The html code can be displaced as a static text or in a text box where it can be copied and pasted. I'd great appericate this. OR Just have the text area box with the HTML code below it, basicly where it auto highlights it all. I'm sure you know that i mean. thank you
×
×
  • 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.