[PHP] POST in Apache server

2006-12-15 Thread Emiliano
Hi all, I'm new in the php world and I have a problem. I want to invoke a php scr= ipt from a web page hosted on an Apache server. The php script writes and= deletes a file but, to be able to do that, I have to make the user to be= myself and not the Apache server. In order to do that below is

[PHP] POST in Apache server

2006-12-15 Thread Emiliano
Hi all, I'm new in the php world and I have a problem. I want to invoke a php script from a web page hosted on an Apache server. The php script writes and deletes a file but, to be able to do that, I have to make the user to be myself and not the Apache server. In order to do that below is the

Re: [PHP] POST in Apache server

2006-12-15 Thread Richard Lynch
On Fri, December 15, 2006 7:39 pm, Emiliano wrote: PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-b= in/script.php on line 14 PHP Notice: Undefined index: val2 in /net/people/user/public_html/cgi-b= in/script.php on line 16 http://php.net/isset -- Some people have a

Re: [PHP] POST in Apache server

2006-12-15 Thread Emiliano
Hi Richard, sorry for bothering you, but can you please give me few more details about how to use isset to solve my problem? -e On Fri, December 15, 2006 7:39 pm, Emiliano wrote: PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-b= in/script.php on line 14 PHP

Re: [PHP] POST in Apache server

2006-12-15 Thread Richard Lynch
On Fri, December 15, 2006 7:39 pm, Emiliano wrote: PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-b= in/script.php on line 14 http://php.net/isset On Fri, December 15, 2006 8:15 pm, Emiliano wrote: sorry for bothering you, but can you please give me few more

Re: [PHP] POST in Apache server

2006-12-15 Thread Casey Chu
Did you add a submit button to the page? On 12/15/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, December 15, 2006 7:39 pm, Emiliano wrote: PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-b= in/script.php on line 14 http://php.net/isset On Fri, December

Re: [PHP] POST in Apache server

2006-12-15 Thread Emiliano
oh ok, I understand that. However, my problem is different: I need those values that instead are not found. The question is: why the POST in the chunck of code inside the html doesn't work? Why is the php script not finding the values posted in the html? Thanks, -emiliano On Fri, December

Re: [PHP] POST in Apache server

2006-12-15 Thread Emiliano
Yes Casey, I'm using the submit button -emiliano On Fri, December 15, 2006 7:39 pm, Emiliano wrote: PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-b= in/script.php on line 14 http://php.net/isset On Fri, December 15, 2006 8:15 pm, Emiliano wrote:

Re: [PHP] POST in Apache server

2006-12-15 Thread Casey Chu
On your script page, add echo pre; print_r($_REQUEST); echo /pre; and tell us the result. On 12/15/06, Emiliano [EMAIL PROTECTED] wrote: Yes Casey, I'm using the submit button -emiliano On Fri, December 15, 2006 7:39 pm, Emiliano wrote: PHP Notice: Undefined index: val1 in

Re: [PHP] POST in Apache server

2006-12-15 Thread Richard Lynch
On Fri, December 15, 2006 10:48 pm, Emiliano wrote: oh ok, I understand that. However, my problem is different: I need those values that instead are not found. The question is: why the POST in the chunck of code inside the html doesn't work? Why is the php script not finding the values posted

Re: [PHP] POST in Apache server

2006-12-15 Thread Emiliano
ok, this is what I get: preArray ( ) /pre PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-bin/mail.php on line 18 PHP Notice: Undefined index: val2 in /net/people/user/public_html/cgi-bin/mail.php on line 20 -emiliano On your script page, add echo pre;

Re: [PHP] POST in Apache server

2006-12-15 Thread Casey Chu
Hmmm... there's something wrong with the form sending its values. Try echo pre; print_r($GLOBALS); echo /pre; On 12/15/06, Emiliano [EMAIL PROTECTED] wrote: ok, this is what I get: preArray ( ) /pre PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-bin/mail.php on line