Jump to content

cwbash

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cwbash's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I did not intend to be condescending, but intended to clarify the reason I asked the question. Yes, your solution fixed the problem (and after 35 years of IT, and 10 years of retirement, I do understand the mantra "when it doesn't work, do it differently and it might.") I would still like to understand how I can make FORM not alter my hash symbol so it comes out as I intended. Thanks for the technical solution, but "does anybody else have a way to make PHP keep it's hands off of my hash symbol?
  2. Well, I guess "madtechie", that the reason I didn't choose another solution is because I wanted to get the FORM to work. I agree, that either the form or the PHP is encoding the hash symbol, the question is "how do I get it to not do so?" I've tried inserting the '\' symbol in front, that doesn't work either.
  3. The more complete code is $idxA=mysql_result($result,$i,"idxA"); $idxN=mysql_result($result,$i,"idxN"); $idxS=mysql_result($result,$i,"idxS"); $idx="#" . $idxA . $idxN . $idxS; $rgn = mysql_result($result,$i,"rgnId"); $pageId=mysql_result($result,$i,"pageId"); $pageIdx=mysql_result($result,$i,"pageIdx"); $ltLabel=mysql_result($result,$i,"ltLabel"); ?> <form action="../showSql.php" method="get"> <table> <tr> <td style="width:250px"> <input name="file" type="text" value="<? echo $rgn . '/' . $pageId . $idx; ?>" style="width: 250px" /> </td> <td style="width:250px"> <input type="text" style="width: 245px" value="<? echo $ltLabel; ?>" /> </td> <td> <input value="Open Page" type="submit" /></td> </tr> </table> </form> --------------------- The operative form problem is the 'form, type=get' where I hope to get the following echoed -->../showSql.php?file=RG/pageID#xx123S. What comes out is not a hash symbol by the ;023 (which I assume is the internal code for a hash symbol, but none of my browsers treat it that way.) Overtype the ;023 with a hash symbol, and they work correctly.
  4. Trying to echo a string that contains a hash symbol. Instead of getting a hash symbol, I get %29. The code I am using is pretty basic -->$idx="#" . $idxA;<--, but as stated, when I echo $idx, it comes out as %29. (All of this is part of a form, get, attempting to pass a bookmark to the receiving program. Thoughts?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.