[thelist] PHP - Passing Variable in URL with Anchor Trouble!

Michael Goddard michael at tdh-marketing.com
Mon Aug 20 07:38:12 CDT 2001


Yes, index.php is the frameset and the cleaningtips.php is the file which is
to load within a certain frame.  We have already tried what you are
suggesting.

We have found a "workaround" to the problem..probably not the greatest thing
in the world but works none the less...

When dynamically creating the URL through variables, we specified a "~"
instead of "&" and through regular expressions converted the "~" to a "&" on
the main frameset.  This works great now.

Thank you to everyone who has responded.  All your help, suggestions and
feedback have been more than helpful.

Michael
----- Original Message -----
From: "rick" <rolson at otn.net>
To: <thelist at lists.evolt.org>
Sent: Friday, August 17, 2001 3:25 PM
Subject: Re: [thelist] PHP - Passing Variable in URL with Anchor Trouble!


> Why is it linking to index.php and cleaningtips.php?  Is index the main
page
> containing the frame, and the $main var just tells which file to load in
the
> frameset?
>
> Maybe replace the ?room with &room, and use index.php to pass the
variables
> to cleaningtips.php.
>
> rick
> http://techno-weenie.com
> ----- Original Message -----
> > We are using a dynamic interface that will list all tips listed in the
> > database and allow the users to edit, add or delete tips as necessary.
> >
> > What we are trying to accomplish is for once the user has created the
tip
> > then there is a "preview" link where they can view the tip within the
web
> > site (in frames) in real time before making the tip "live" .
> >
> > Here is the print statement we are using with PHP to generate the anchor
> > tag.  All variables are being passed correctly so that is not the
problem
> >
> > \********
> > *******
> > ** print "<a
> >
>
href='http://$web_address/index.php?main=cleaningtips.php?room=".$clean_arra
> > y
> > **
> >
>
["Room"]."&surface=".$clean_array["Surface"]."&stain=".$clean_array["Stain"]
> > ."&id=".$clean_array["ID"]."' ** target='new'>view</a>\n";
> > *******
> > ********/
> >
> > The variables are passed just fine until you get to the & before the
> > surface="".  So the URL looks like this:
> >     a
> > href="http://www.myweb.com/index.php?main=cleaningtips.php?room=KITCHEN
> >
> > Then it just dies!  The funning thing is that if I take out the
> > "index.php?main=" part then everything works great except the page is an
> > orphan outside the frameset which we would rather not do.
> >
> > Any clues to what might be going on?  I have tried grouping all the
> > variables together and that did not work..the anchor is still killed
after
> > the first & symbol.  Is it possible that there can only be one ? listed
in
> > the URL?  IF that is the case then any suggestions on work arounds?
> >
> > Thank you for any input and/or suggestions.
> >
> > Michael
> >
> >
> > ---------------------------------------
> > For unsubscribe and other options, including
> > the Tip Harvester and archive of TheList go to:
> > http://lists.evolt.org Workers of the Web, evolt !
>
>





More information about the thelist mailing list