| Author |
Pass ID from one page to another PHP (k)
|
|
| W. Kirk Lutz 2005-07-07, 7:31 pm |
| Trying to get a handle on this ID passing. I did this in class, but
can't seem to have it happen in real life.
Trying to pass an ID from this page:
http://www.redheadcompanies.com/Login/work_byclient.php
<a href="work_results.php?ID_CLIENT=<?php echo
$row_CLIENTS['ID_CLIENT']; ?>">
<img src="<?php echo $row_CLIENTS['TITLE_THUMB']; ?>" alt="<?php echo
$row_CLIENTS['CLIENT']; ?>" name="Image11" border="0" id="Image1"
title=""></a>
To this page:
http://www.redheadcompanies.com/Login/work_results.php
I have the RecordSet filled in like this:
TITLE_ART = URL Parameter ID_CLIENT
The graphic I am trying to change has this attached to it:
<img src="<?php echo $row_CLIENTS['TITLE_ART']; ?>" alt="<?php echo
$row_CLIENTS['CLIENT']; ?>" title="">
It is not changing in relationship to the client chosen on the other page.
Any help would be appreciated.
-kirk
| |
| W. Kirk Lutz 2005-07-07, 7:31 pm |
| Somebody out there has had to have done this. It can't be that tough. I
have tried every combination I can think of, nothing is working.
I think I have this page set up correctly:
http://www.redheadcompanies.com/Login/work_byclient.php
It's the results page that I can't harness:
http://www.redheadcompanies.com/Login/work_results.php
I want the graphic at the top of this page that reads "Chesapeake Bay
Foundation" to change to correspond to the item selected on the
work_byclient.php page.
Anybody? Bueller? Bueller?
-Kirk
W. Kirk Lutz wrote:
> Trying to get a handle on this ID passing. I did this in class, but
> can't seem to have it happen in real life.
>
> Trying to pass an ID from this page:
> http://www.redheadcompanies.com/Login/work_byclient.php
>
> <a href="work_results.php?ID_CLIENT=<?php echo
> $row_CLIENTS['ID_CLIENT']; ?>">
> <img src="<?php echo $row_CLIENTS['TITLE_THUMB']; ?>" alt="<?php echo
> $row_CLIENTS['CLIENT']; ?>" name="Image11" border="0" id="Image1"
> title=""></a>
>
> To this page:
> http://www.redheadcompanies.com/Login/work_results.php
>
> I have the RecordSet filled in like this:
> TITLE_ART = URL Parameter ID_CLIENT
>
> The graphic I am trying to change has this attached to it:
> <img src="<?php echo $row_CLIENTS['TITLE_ART']; ?>" alt="<?php echo
> $row_CLIENTS['CLIENT']; ?>" title="">
>
>
> It is not changing in relationship to the client chosen on the other page.
>
> Any help would be appreciated.
>
> -kirk
| |
| Michael Fesser 2005-07-08, 7:16 pm |
| .oO(Justice Campbell)
>"W. Kirk Lutz" <kirk@sternagency.com> wrote in message
>news:dak0e4$4tf$5@forums.macromedia.com...
>
>shouldn't you reference id_client in the second page by "$id_client"?
$_GET['ID_CLIENT'] would be correct.
>Using
>just id_client in the second page (with no $)seems to me would just return a
>null value?
Actually the above was just an example for what he did, no PHP code.
Micha
| |
| W. Kirk Lutz 2005-07-08, 7:29 pm |
| What I am looking for is a tutorial on how to do this.
The button graphics and headline graphics are contained in the same table
within the database.
I want to learn how to press the button graphic on the one page and have the
headline on the results page change to correspond to the button I pressed.
I have tried every combination I could think of yesterday. 8 hours of trial
and error. I cannot get it working.
Anybody?
-Kirk
On 7/8/05 6:53 AM, in article jimsc1t329ou9332kjjjh464dpcjd0lhsq@4ax.com,
"Michael Fesser" <netizen@gmx.net> wrote:
> .oO(Justice Campbell)
>
>
> $_GET['ID_CLIENT'] would be correct.
>
>
> Actually the above was just an example for what he did, no PHP code.
>
> Micha
| |
| W. Kirk Lutz 2005-07-08, 7:30 pm |
| Okay, figured out how to pass the variable properly. Was really a lightbulb
over the head moment.
Need a URL Parameter. Thought this was supposed to be the same as the name
in the table. Ended up calling mine "passID". I know that it is passing
because I can see the title alt tag changes. But the title art doesn't
Any help?
-Kirk
On 7/8/05 9:42 AM, in article BEF3FB19.DCF6%kirkebay@verizon.net, "W. Kirk
Lutz" <kirkebay@verizon.net> wrote:
> What I am looking for is a tutorial on how to do this.
>
> The button graphics and headline graphics are contained in the same table
> within the database.
>
> I want to learn how to press the button graphic on the one page and have the
> headline on the results page change to correspond to the button I pressed.
>
> I have tried every combination I could think of yesterday. 8 hours of trial
> and error. I cannot get it working.
>
> Anybody?
>
> -Kirk
>
>
> On 7/8/05 6:53 AM, in article jimsc1t329ou9332kjjjh464dpcjd0lhsq@4ax.com,
> "Michael Fesser" <netizen@gmx.net> wrote:
>
>
| |
| W. Kirk Lutz 2005-07-08, 7:30 pm |
| Figured it out. My database image path was incorrect.
On 7/8/05 10:21 AM, in article BEF40442.DD24%kirkebay@verizon.net, "W. Kirk
Lutz" <kirkebay@verizon.net> wrote:
> Okay, figured out how to pass the variable properly. Was really a lightbulb
> over the head moment.
>
> Need a URL Parameter. Thought this was supposed to be the same as the name
> in the table. Ended up calling mine "passID". I know that it is passing
> because I can see the title alt tag changes. But the title art doesn't
>
> Any help?
>
> -Kirk
>
>
> On 7/8/05 9:42 AM, in article BEF3FB19.DCF6%kirkebay@verizon.net, "W. Kirk
> Lutz" <kirkebay@verizon.net> wrote:
>
>
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |