Re: [PHP] Who uses Mantis, please help!

2010-04-08 Thread Jonathan Vivero
Review your mantis mail settings. If I remember well, there are two
possibilities, direct (pop3) mail or phpmailer. In www.mantisbt.org you can
find all information you need. I've been in the same situation, and found
out how to resolve it with success.


2010/4/7 Paul M Foster pa...@quillandmouse.com

 On Wed, Apr 07, 2010 at 03:37:07PM +0300, Andre Polykanine wrote:

  Hello everyone,
  I decided to use Mantis before I'll be able to use something like Trac
  :-).
  The problem is: I'm not getting mail about issues reported by my
  testers, only by myself. The preferences are set correctly (all the
  checkboxes are checked).
  Could you help me please?
  Thanks!

 Isn't there a Mantis list or forum?

 Paul

 --
 Paul M. Foster

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Jonathan Vivero
Or you can also do this way:

on loading
?php

[...]
echo input type='hidden' name='myphpvar' id='myphpvar'
value='.$myphpvar.';
[...]
echo input type='button' name='mybutton' id='mybutton'
onclick='javascript:recalculateValue();' value='Click Me!' ;
[...]

?

script type=text/javascript
functino recalculateValue(){

var myText = document.getElementById(myphpvar);
var myValue = myText.value;
/*
operations with myText
*/

myText.value = myRecalcValue;

}
/script


once changed, you choose how to proceed, maybe executing any other js
funcion that use new value of/for the input, maybe submit the form an take
it from the request in the next page (in the server side, this time).

basicly is use hidden inputs as a container for php variables, and transform
through js.

2009/9/18 Gautam Bhatia mail2gautambha...@gmail.com

 hello,

 You can also try using AJAX technology to communicate with the server
 side code that is your php :).

 Regards,
 Gautam Bhatia
 Punjab,India
 mail2gautambha...@gmail.com


 On Fri, 2009-09-18 at 02:16 +0700, saeed ahmed wrote:
  hello guys,
 
  i'm new here in this list. guys i need a help. i can't assign a js
 variable
  value to a php variable. how can i do this?
 
 
  --
  Regards,
  Saeed Ahmed
  Rajshahi, Bangladesh
  Blog: http://saeed05.wordpress.com
  --
  Follow Me Linkedin
  http://www.linkedin.com/in/sas05Twitterhttp://twitter.com/saeed05


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Jonathan Vivero
imagine you have an assoc. array that you encode with json and save in the
js var. Ok.

This way is perfect. But you can do less with this values than using my
solution. Important: Each case is different, and may be studied in
particular.

You can not pass this myPHPvar javascript var as an input in a form. if you
want to change its value and maintein it, must to use an static var, and
only can access to this values via javascript functions where an event is
invoked  (in case you want to read or write values)

And I repeat: My solution is not the best, of course, but in many cases (for
my), mantaninance of data in hidden input and using DOM for accessing it,
allow an easiest dinamic treatment of data without reload a web page. Even
more if using jQwey or Prototype.



2009/9/18 Andrea Giammarchi an_...@hotmail.com

  Actually, it's even more simple ... forgive me:

 echo 'script type=text/javascriptvar
 myPHPvar='.json_encode($myPHPvar).';/script';

 that's pretty much it

  From: an_...@hotmail.com
  To: jonathan.desarro...@gmail.com; mail2gautambha...@gmail.com
  CC: saeed@gmail.com; php-general@lists.php.net
  Date: Fri, 18 Sep 2009 13:01:28 +0200
  Subject: RE: [PHP] how i assign a js variable to a php variable
 
 
 
   basicly is use hidden inputs as a container for php variables, and
 transform
   through js.
 
  really? I though the other way round was extremely simple:
 
  echo 'script type=text/javascriptvar
 myPHPvar=eval(('.addslashes(json_encode($myPHPvar)).'));/script';
 
  why would you use hidden input, plus DOM to get data, etc, etc?
 
  _
  Show them the way! Add maps and directions to your party invites.
  http://www.microsoft.com/windows/windowslive/products/events.aspx

 --
 With Windows Live, you can organize, edit, and share your 
 photos.http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx



Re: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Jonathan Vivero
And of course, sorry for my english!!! I correct!!


Imagine you have an assoc. array that you encode with json and save into the
 js var. Ok.

 This way is perfect. But you can do less with this values than using my
 solution. Important: Each case is different, and may be studied in
 particular.

 You can not send by request this myPHPvar javascript var as an input in a
 form. if you want to change its value and maintain it, must to use an static
 var, and only can access to this value via javascript functions when an
 event is invoked  (in case you want to read or write values)

 And I repeat: My solution is not the best, of course, but in many cases
 (for me), data maintainance in hidden inputs, and using DOM to access it,
 allow an easiest dinamic treatment of data without reloading a web page.
 Even more if you are using jQwey or Prototype.



 2009/9/18 Andrea Giammarchi an_...@hotmail.com

  Actually, it's even more simple ... forgive me:

 echo 'script type=text/javascriptvar
 myPHPvar='.json_encode($myPHPvar).';/script';

 that's pretty much it

  From: an_...@hotmail.com
  To: jonathan.desarro...@gmail.com; mail2gautambha...@gmail.com
  CC: saeed@gmail.com; php-general@lists.php.net
  Date: Fri, 18 Sep 2009 13:01:28 +0200
  Subject: RE: [PHP] how i assign a js variable to a php variable
 
 
 
   basicly is use hidden inputs as a container for php variables, and
 transform
   through js.
 
  really? I though the other way round was extremely simple:
 
  echo 'script type=text/javascriptvar
 myPHPvar=eval(('.addslashes(json_encode($myPHPvar)).'));/script';
 
  why would you use hidden input, plus DOM to get data, etc, etc?
 
  _
  Show them the way! Add maps and directions to your party invites.
  http://www.microsoft.com/windows/windowslive/products/events.aspx

 --
 With Windows Live, you can organize, edit, and share your 
 photos.http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx