newbie question links and output

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default newbie question re: links and output

    I'm creating a page for work where I have a list of the 50 states, and
    when one state is clicked, a pop-up comes up where it says, "Hello
    Arkansas, etc...". I initially thought I would have to create 50 static
    html pages, but am sure this could be done with 1 php page. Thanks.

    socal local Guest

  2. Similar Questions and Discussions

    1. Newbie Question: Biz Card Template Question
      Hi, I got the Pagemaker PlugIn - I am using one of the templates for Business Cards - the elements appear to be grouped (bound box all around when I...
    2. Simple Questions from Flex Newbie about Links and Lists
      Hi, I am working on creating a little flex app that my users can embed into any other sites of their choice. I want to start out by creating a...
    3. Newbie: Extension to add a new url prefix to pdf links?
      Hi folks, I need to write a tiny extension for Contibute (which can be extending the same way as Dreamweaver I believe) that takes the prefix...
    4. Newbie Using Arrays--Array Runs But Output is Incorrect
      I'm trying to build a dynamic table with a 2D array. My array runs, but the output which should be 00 is 000000000. My goal is to output a table...
    5. Pen Tool Use Question. (Embarrassingly Newbie Question)
      I'm currently using Flash MX and whenever I choose the Pen Tool instead of the pen nib with the small "x" beside it that supposed to show up on...
  3. #2

    Default Re: newbie question re: links and output

    Explain more what these page have to do or contain, we can't help you if you
    dont give us enough information.

    Savut

    "socal local" <coastin310@NoSpam.yahoo.com> a écrit dans le message de
    news:XRtvb.1480917$Of.218635@news.easynews.com...
    > I'm creating a page for work where I have a list of the 50 states, and
    > when one state is clicked, a pop-up comes up where it says, "Hello
    > Arkansas, etc...". I initially thought I would have to create 50 static
    > html pages, but am sure this could be done with 1 php page. Thanks.
    >

    Savut Guest

  4. #3

    Default Re: newbie question re: links and output

    Basically, I have a webpage with a list of states such as:

    California
    Oregon
    Washington

    with each state hyperlinked to another page that will say,
    "Hello California..." when California is clicked. Of course,
    this could be done by creating a page for each state, but
    thought it would be better to have 1 page with PHP. I've done
    this kind of thing with form fields, but wasn't sure how to do
    it with hyperlinks.

    Savut wrote:
    > Explain more what these page have to do or contain, we can't help you if you
    > dont give us enough information.
    >
    > Savut
    >
    > "socal local" <coastin310@NoSpam.yahoo.com> a écrit dans le message de
    > news:XRtvb.1480917$Of.218635@news.easynews.com...
    >
    >>I'm creating a page for work where I have a list of the 50 states, and
    >>when one state is clicked, a pop-up comes up where it says, "Hello
    >>Arkansas, etc...". I initially thought I would have to create 50 static
    >>html pages, but am sure this could be done with 1 php page. Thanks.
    >>
    >
    >
    >
    socal local Guest

  5. #4

    Default Re: newbie question re: links and output

    the link looks like (for example):
    popup.php?state=California
    or if the states are in a database
    popup.php?stateid=3

    then in the popup.php

    in case 1:
    hello <?=$state?>
    or strictly
    hello <?=$_GET['state']?>

    in case 2 first get the state name from the db according to the id then
    use similar formula to display it


    On Fri, 21 Nov 2003 22:57:20 GMT, socal local
    <coastin310@NoSpam.yahoo.com> wrote:
    > Basically, I have a webpage with a list of states such as:
    >
    > California
    > Oregon
    > Washington
    >
    > with each state hyperlinked to another page that will say,
    > "Hello California..." when California is clicked. Of course,
    > this could be done by creating a page for each state, but
    > thought it would be better to have 1 page with PHP. I've done
    > this kind of thing with form fields, but wasn't sure how to do
    > it with hyperlinks.
    >
    > Savut wrote:
    >> Explain more what these page have to do or contain, we can't help you
    >> if you
    >> dont give us enough information.
    >>
    >> Savut
    >>
    >> "socal local" <coastin310@NoSpam.yahoo.com> a écrit dans le message de
    >> news:XRtvb.1480917$Of.218635@news.easynews.com...
    >>
    >>> I'm creating a page for work where I have a list of the 50 states, and
    >>> when one state is clicked, a pop-up comes up where it says, "Hello
    >>> Arkansas, etc...". I initially thought I would have to create 50 static
    >>> html pages, but am sure this could be done with 1 php page. Thanks.
    >>>
    >>
    >>
    >>
    >


    --
    Using M2, Opera's revolutionary e-mail client: [url]http://www.opera.com/m2/[/url]
    Ysu Guest

  6. #5

    Default Re: newbie question re: links and output

    Ysu wrote:
    > the link looks like (for example):
    > popup.php?state=California
    > or if the states are in a database
    > popup.php?stateid=3
    >
    > then in the popup.php
    >
    > in case 1:
    > hello <?=$state?>
    > or strictly
    > hello <?=$_GET['state']?>
    >
    > in case 2 first get the state name from the db according to the id then
    > use similar formula to display it
    >

    Thanks....worked perfectly.

    socal local Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139