RE: [PHP] Re: Php function to Set focus On A form Field

2006-04-26 Thread Ing. Edwin Cruz
Or if you have header.inc.php and the body tag is global then in your
form.inc.php(for example) or in your template, you can do this:

script
Window.onLoad=function(){
document.nameform.inputField.focus();
}
/script



Regards!



-Mensaje original-
De: Philipp Kopf [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 26 de Abril de 2006 01:42 a.m.
Para: php-general@lists.php.net
Asunto: [PHP] Re: Php function to Set focus On A form Field


marvin hunkin schrieb:
 Hi.
 is there any php or java script function, where i can embed into my 
 php
 or html file, to set focus on to the first form field, like a text box, 
 to go to that field first, and not to go to the link or button first.
 if there are any tips, tricks, or links or code examples, how to fix 
 this problem.
 let me know.
 cheers Marvin.

Hi.

It is not possible to do that using PHP but you can use JavaScript 
instead. I recommend the function focus(). For example:
BODY OnLoad=document.nameform.user.focus();

Check this tiny tutorial: 
http://javascript.internet.com/page-details/focus-onload.html

Did you already remarked that http://www.google.com is using this 
function to automatically set the focus on the search field.

regards

Philipp

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

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



RE: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem

2006-04-26 Thread Ing. Edwin Cruz
Try changing your direcive extension_dir:
extension_dir=C:/PHP/ext  instead of extension_dir=C:\PHP\ext




-Mensaje original-
De: Laszlo Nagy [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 26 de Abril de 2006 04:01 a.m.
Para: php-general@lists.php.net
Asunto: [PHP] PHP 5 + Apache 2 on Windows: ms sql extension problem



 Hello All,

I had a problem with a Win2003 server, IIS6 and PHP 5.1.2. The MS SQL 
extension was not working. I did not get an answer, but some people 
suggested me to use Apache. Now I installed Win 2000 server, Apache 
2.0.55 and PHP 5.1.2. The same computer has Microsoft SQL Server 
installed. I have only these lines in my php.ini file:

extension_dir=C:\PHP\ext
extension=php_mssql.dll

I checked phpinfo() and it tells that my php.ini file is at the correct 
location (C:\winnt\php.ini.) I can load other extensions. Another 
example: if I add php_curl.dll then I get a libsleay32.dll not found 
error message when I try to restart apache. But I do not get any error 
message about the php_mssql.dll. It is just not loaded. I'm sure that 
all the ms sql client libs are installed, because this is the same 
machine where the ms sql server is running. What can be the problem? 
Please help me. My bosses are killing me because I could not solve this 
problem for weeks. :-(

Thanks,

  Laszlo

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

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



RE: [PHP] need help to put input text value into url

2006-04-25 Thread Ing. Edwin Cruz
Only chage method=post for method=get




Regards!


-Mensaje original-
De: Patrick Aljord [mailto:[EMAIL PROTECTED] 
Enviado el: Martes, 25 de Abril de 2006 06:19 p.m.
Para: php-general@lists.php.net
Asunto: [PHP] need help to put input text value into url


I have a form like this:
form action=search.php method=post target=_self
input type=text name=search_text cols=20 rows=10/input input
type=submit name=submit_search value=search / /form

while this is working fine, I would like the url of search.php to be
something like search.php?q=value+of+search_text
eg, if I enter php rules in my text box, the url should be
http://myfakepage.com/search.php?q=php+rules;
any idea how to do that?

thanx in advance

Pat

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

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



RE: [PHP] POST arrays?

2006-04-20 Thread Ing. Edwin Cruz
I'd try this:
?php
$arr_siirto = array(1,2,3);
print_r($arr_siirto);

$arse = $arr_siirto;
print_r($arse);

Foreach($arr_siirto as $value){
echo input type=text name=\arr_siirto[]\ values='$value';
}
?

And when submit do this:

?
$arr_sirto = $_REQUEST['arr_siirto'];
Print_r($arr_sirto);
?


Regards!


Edwin.



-Mensaje original-
De: tedd [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Abril de 2006 08:28 a.m.
Para: William Stokes; php-general@lists.php.net
Asunto: Re: [PHP] POST arrays?


At 3:55 PM +0300 4/20/06, William Stokes wrote:
BTW, can sessions and $POST be mixed? If yes is there any reason what 
so ever to do that?

Yes, you can use sessions, post, get, and cookies all in the same 
script if you want.

Yes, there can be reasons to do that.

tedd

-- 


http://sperling.com

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

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



RE: [PHP] session

2006-04-20 Thread Ing. Edwin Cruz
You should set a name to your session:

Index.php:
?
session_name(mySession);
session_start();
$_SESSION['myVar'] = something;
?


LogOff.php
?
session_name(mySession);
session_start();
Session_destroy();
Print_r($_SESSION);
?
++
| ISC Edwin Cruz [EMAIL PROTECTED]| ++
| IT Manager, MySQL GUI Doc Team | ||
| Transportes Medel Rogero SA de CV  | ||
| Desk:  +52 (449) 910 30 90 x3054   | ++
| MX Mobile: +52 (449) 111 29 03 |
| Aguascalientes, Mexico |
| Skype: e-cruz [EMAIL PROTECTED] |
| http://www.medel.com.mx|
++



-Mensaje original-
De: cajbecu [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Abril de 2006 09:03 a.m.
Para: João Cândido de Souza Neto
CC: php-general@lists.php.net
Asunto: Re: [PHP] session


Hello,

Try generating your own session id and the problem will be solved ;)

cheers,

João Cândido de Souza Neto wrote:
 Hi everyone.
 
 I hope someone here can help me.
 
 When i start a session in a php page, this session receives an unique 
 id.
 
 If you think about this, if i call a session_destroy() in any page and 
 in the other paga call a session_start() again, it'll receive other 
 unique id. But it isn't working. Everything above has been executed 
 but the session id's always the same.
 
 It can be any config var in php.ini?
 
 Thanks for tips.
 

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

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



RE: [PHP] PHP error log

2006-04-20 Thread Ing. Edwin Cruz
Are you using the constants predefined?

__FILE__ __LINE__

Or also try using backtrace, 

http://mx.php.net/debug_backtrace


Regards!
Edwin.



-Mensaje original-
De: Weber Sites LTD [mailto:[EMAIL PROTECTED] 
Enviado el: Jueves, 20 de Abril de 2006 07:43 a.m.
Para: php-general@lists.php.net
CC: [EMAIL PROTECTED]
Asunto: [PHP] PHP error log


Hi

I'm using PHP 4.4.0 (cli) and all of the errors / warnings are written to
file. I can see all of the direct errors but when I have an error inside an
include file the script fails and the error is not shown in the log. I have
to guess 
Where the error is.

Any idea what I'm missing.

Thanks
Berber

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

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