FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP variable holding path string will not render remotely
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP variable holding path string will not render remotely [message #173749 is a reply to message #173745] Mon, 02 May 2011 23:27 Go to previous messageGo to previous message
goldtech is currently offline  goldtech
Messages: 5
Registered: September 2010
Karma:
Junior Member
snip...

Hi,

I totally agree much more info is necessary to begin to get help. I
was dazed and confused and ripping hair from my scalp when I posted -
so sorry. I was trying to narrow the problem down when I saw what was
going wrong and fixed it...still don't know all the intricacies of it
- but it works.

I was trying to, when a user clicks on a thumb (an image) it works as
a submit button and also does a POST or GET to send data to the target
page. It was working locally on my localhost test laptop but when
tried on a "remote" PC the POST was not working. I incorrectly thought
that a PHP variable's content sent by the POST was getting stripped
clean. I realized when I switched from a POST to a GET and saw nothing
was being sent by the GET and the variable was just going to a default
value in the target page. For some reason the HTML code I was trying
was not working on remote PCs, that bad code is deleted and forgotten.
Below is what worked:
...
echo '<form action="detail.php" method="get">';
echo '<button type="submit" name="n" value="'.$recnum.'"> <img
src="'.$trelpath.'" WIDTH=320 HEIGHT=240/> </button>';
echo '</form>';
...

Lee G.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP developer needed in Minneapolis!
Next Topic: Please Help Me
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 21:35:09 GMT 2024

Total time taken to generate the page: 0.07421 seconds