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 #173750 is a reply to message #173749] Tue, 03 May 2011 00:54 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 5/2/2011 7:27 PM, goldtech wrote:
> 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.
>
>

Glad you got it fixed, Lee.

One of the worst things to have happen is to ask a question and no one
responds - not even with "we need more information".

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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: Wed Nov 27 17:49:19 GMT 2024

Total time taken to generate the page: 0.04190 seconds