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

rick rolson at otn.net
Fri Aug 17 14:25:17 CDT 2001


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