Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #21

    Default Re: Links

    If I'm understanding correctly, you want to pass a variable to PHP
    when someone clicks on a link made by a <a></a> tag. To do this you
    would simply append "&varname=varvalue" to the end of your link, like
    so:

    <a href="index.html?Rut=RohRaggy">Scooby Snacks</a>

    Is this what you mean?

    On Sun, 18 Jul 2004 21:08:17 -0400, "FmC" <antilopeloco@manquehue.not>
    wrote:
    >what I have is the following: The same html form as before with a link thats
    >called 'buscar' that executes the file 'buscar.php'. Inside the php file I
    >need to use the variable 'Rut' to search in the database.
    >
    >
    >Thank You
    >
    >
    >"Sebastian Lauwers" <dacrashanddie@9online.fr> escribió en el mensaje
    >news:40fb0822$0$1906$636a15ce@news.free.fr...
    >> FmC wrote:
    >>
    >> > Hey, So I have advanced a lot since yesterday thanks to all of your
    >help.
    >> > But, as espexted, Im stuck again :-(
    >> >
    >> > What I need to do know is to use the same variable from the html form
    >($Rut)
    >> > but in a php file that is activated via 'link'. I don't think my english
    >is
    >> > very clear, so... by 'link' I mean the tippical underlined word that
    >takes
    >> > me to the file 'buscar.php'
    >>
    >> I dont really understand. You want to transmit a form with a link? Or do
    >> you want to get a var that's in a link?
    >>
    >> If you want to get a var in a link:
    >>
    >> <?php //let's say the link was myfile.php?foo=bleh
    >>
    >> if (isset ($_GET['foo']) ) {
    >>
    >> $foo = $_GET['foo'];
    >> echo $foo;
    >>
    >> }
    >> else {
    >>
    >> exit ('No var');
    >>
    >> }
    >> ?>
    >>
    >> > Please, a little extra help
    >>
    >> I'm almost sure i'm wrong, so could you try explain a bit more detailed
    >> what you're trying to do?
    >>
    >> > Thanks
    >>
    >> Best regards,
    >> Sebastian
    >>
    >>
    >>
    >> --
    >> The most likely way for the world to be destroyed,
    >> most experts agree, is by accident.
    >> That's where we come in; we're computer professionals.
    >> We cause accidents.
    >> --Nathaniel Borenstein
    >
    eclipsboi Guest

  2. Similar Questions and Discussions

    1. Resetting "Visited" links to "links" color when new browser opens
      HELP! This should be simple, but I can't find info: In using CSS for font color for text hyperlinks, I have mine set so that the "links" are a...
    2. Web-links on a MAC
      Hi, If you've got a Mac, can you try this site and see if the links in the middle of the page work? http://game-i2.djmasala.com The site is for...
    3. When we move Image Links and HTML links
      On our Local Site (hard drive), our web projects is almost complete and we have already uploaded and sync the internet site (remote site). I have...
    4. ?Hard links, Soft links, & Aliases--Explain
      Hi All, Could some knowledgeable UNIX type please explain the differences between hard links, soft links, and traditional Mac aliases. Responses...
  3. #22

    Default Re: Links

    yes, that is what I want to do, but I don'e quite undestand the example. I
    thing what I should do is:
    <a href="buscar.php?Rut=$Rut">Buscar</a>

    because if that is it, is not working :-(

    Thanks, and sorry for asking too much



    "eclipsboi" <eclipsboi@hotmail.com> escribió en el mensaje
    news:k2fmf0hckklrusbqk7s3o98pbkhp1l6qrc@4ax.com...
    > If I'm understanding correctly, you want to pass a variable to PHP
    > when someone clicks on a link made by a <a></a> tag. To do this you
    > would simply append "&varname=varvalue" to the end of your link, like
    > so:
    >
    > <a href="index.html?Rut=RohRaggy">Scooby Snacks</a>
    >
    > Is this what you mean?
    >
    > On Sun, 18 Jul 2004 21:08:17 -0400, "FmC" <antilopeloco@manquehue.not>
    > wrote:
    >
    > >what I have is the following: The same html form as before with a link
    thats
    > >called 'buscar' that executes the file 'buscar.php'. Inside the php file
    I
    > >need to use the variable 'Rut' to search in the database.
    > >
    > >
    > >Thank You
    > >
    > >
    > >"Sebastian Lauwers" <dacrashanddie@9online.fr> escribió en el mensaje
    > >news:40fb0822$0$1906$636a15ce@news.free.fr...
    > >> FmC wrote:
    > >>
    > >> > Hey, So I have advanced a lot since yesterday thanks to all of your
    > >help.
    > >> > But, as espexted, Im stuck again :-(
    > >> >
    > >> > What I need to do know is to use the same variable from the html form
    > >($Rut)
    > >> > but in a php file that is activated via 'link'. I don't think my
    english
    > >is
    > >> > very clear, so... by 'link' I mean the tippical underlined word that
    > >takes
    > >> > me to the file 'buscar.php'
    > >>
    > >> I dont really understand. You want to transmit a form with a link? Or
    do
    > >> you want to get a var that's in a link?
    > >>
    > >> If you want to get a var in a link:
    > >>
    > >> <?php //let's say the link was myfile.php?foo=bleh
    > >>
    > >> if (isset ($_GET['foo']) ) {
    > >>
    > >> $foo = $_GET['foo'];
    > >> echo $foo;
    > >>
    > >> }
    > >> else {
    > >>
    > >> exit ('No var');
    > >>
    > >> }
    > >> ?>
    > >>
    > >> > Please, a little extra help
    > >>
    > >> I'm almost sure i'm wrong, so could you try explain a bit more detailed
    > >> what you're trying to do?
    > >>
    > >> > Thanks
    > >>
    > >> Best regards,
    > >> Sebastian
    > >>
    > >>
    > >>
    > >> --
    > >> The most likely way for the world to be destroyed,
    > >> most experts agree, is by accident.
    > >> That's where we come in; we're computer professionals.
    > >> We cause accidents.
    > >> --Nathaniel Borenstein
    > >
    >

    FmC Guest

  4. #23

    Default Re: Links

    FmC wrote:
    > yes, that is what I want to do, but I don'e quite undestand the example. I
    > thing what I should do is:
    > <a href="buscar.php?Rut=$Rut">Buscar</a>
    Little question, has the var $Rut already been transmitted to the
    server? What i mean is, do you need to get the $Rut from the form? Or
    has it already been given? If it has been given and transmitted (by
    pushing the Submit button, else a form doesn't work) then this should
    suffice:

    <?php

    //let's say the var is foo

    $Rut = 'foo';

    echo '<a href="buscar.php?Rut='.$Rut.'">Foo link</a>';

    ?>
    > because if that is it, is not working :-(
    >
    > Thanks, and sorry for asking too much
    It's better you ask too much (which is, i'm afraid, almost impossible
    given the number of users in this newsgroup) than to little and keep
    making mistakes, and never get to your goal.

    (please delete the parts to which you're not answering)


    Best regards,
    Sebastian


    --
    The most likely way for the world to be destroyed,
    most experts agree, is by accident.
    That's where we come in; we're computer professionals.
    We cause accidents.
    --Nathaniel Borenstein
    Sebastian Lauwers Guest

  5. #24

    Default links

    HANUTA - WAFFELN für Birte



    [url]http://www.metabuilders.com/Tools/BoundBooleanColumn.aspx[/url]



    Ralf Guest

  6. #25

    Default Re: links

    sorry, please ignore this thread !!!
    if ng-master, please delete !!


    Ralf Guest

  7. #26

    Default links

    Is there a way you can link the same text/buttons and or images on different pages at the same time. To cut down on time...
    rick the ruler Guest

  8. #27

    Default Re: links

    Use a DW template or a server side include for your menus, nav, etc
    stevenlmas 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