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

Home » Imported messages » comp.lang.php » Value in a grid
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Value in a grid [message #171329 is a reply to message #171323] Thu, 30 December 2010 12:25 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On 30/12/10 10:56, "Álvaro G. Vicario" wrote:
> El 30/12/2010 11:48, Sarah escribió/wrote:
>> Hi! I've a grid with a button that allow to pass value to another
>> page.... My problem is that I don't like to pass these value on the
>> page because users could change/modify them... can you help me to find
>> a solution?
>>
>>
>>
>> foreach ($wscalls as $key=>$wscall)
>> {
>> $iddocumento = $wscall['iddocumento'] ;
>>
>> $actions = "<a href = \' \' onclick= \' return
>> sendemail(\"" . (string)$iddocumento . "\"); \'> <img src= \'" .
>> $this->view->baseUrl() . "/css/images/sendemail.png \' /> </a> ";
>>
>> if ((isset($iddocumento)&& !empty($iddocumento))
>> && ((int)$value>0 )){
>> $actions .= "<a href = \'pay?value=" .
>> $value . "&iddocumento=". $iddocumento . "\' $onclick> <img src=
>> \'" . $this->view->baseUrl() . "/css/images/". $img_pay ." \' /> </a>
>> ";
>> }

>> How can I pass value to send page without show user the values??
>
> I don't think there's a PHP solution to that because PHP runs on the
> server. You should improve your client-side JavaScript to pick the value
> and send it to the server (as a GET parameter, in a POST form, with an
> AJAX request... whatever you prefer). One you manage to do so, you can
> fetch the value from $_GET or $_POST (depending on the method you chose).

Perhaps the answer is to use php sessions rather than passing values
using hidden values in forms.

Rgds

Denis McMahon
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php mail( )
Next Topic: Ignoring Case on directories
Goto Forum:
  

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

Current Time: Fri Sep 20 12:22:45 GMT 2024

Total time taken to generate the page: 0.04873 seconds