Ask a Question related to Dreamweaver AppDev, Design and Development.
-
eclipsboi #21
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...>help.>> FmC wrote:
>>>> > Hey, So I have advanced a lot since yesterday thanks to all of your>($Rut)>> > But, as espexted, Im stuck again :-(
>> >
>> > What I need to do know is to use the same variable from the html form>is>> > but in a php file that is activated via 'link'. I don't think my english>takes>> > very clear, so... by 'link' I mean the tippical underlined word that>>>>> > 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 Borensteineclipsboi Guest
-
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... -
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... -
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... -
?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... -
FmC #22
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...thats> 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 linkI> >called 'buscar' that executes the file 'buscar.php'. Inside the php fileenglish> >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...> >help.> >> FmC wrote:
> >>
> >> > Hey, So I have advanced a lot since yesterday thanks to all of your> >($Rut)> >> > But, as espexted, Im stuck again :-(
> >> >
> >> > What I need to do know is to use the same variable from the html form> >> > but in a php file that is activated via 'link'. I don't think mydo> >is> >takes> >> > very clear, so... by 'link' I mean the tippical underlined word that> >> > me to the file 'buscar.php'
> >>
> >> I dont really understand. You want to transmit a form with a link? Or>> >> >> 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
-
Sebastian Lauwers #23
Re: Links
FmC wrote:
Little question, has the var $Rut already been transmitted to the> 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>
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>';
?>
It's better you ask too much (which is, i'm afraid, almost impossible> because if that is it, is not working :-(
>
> Thanks, and sorry for asking too much
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
-
Ralf #24
links
HANUTA - WAFFELN für Birte
[url]http://www.metabuilders.com/Tools/BoundBooleanColumn.aspx[/url]
Ralf Guest
-
-
rick the ruler #26
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
-
stevenlmas #27
Re: links
Use a DW template or a server side include for your menus, nav, etc
stevenlmas Guest



Reply With Quote

