View previous topic :: View next topic |
Author |
Message |
roadblock -
Joined: 01 Apr 2003 Posts: 3
|
Posted: Tue Apr 01, 2003 10:10 am Post subject: PHP not taking arguments |
|
|
I am new to this web server but I am trying to run my php scripts with it. I setup the server for php and it does run it but my problem is that when i use forms that send arguments to a php script, the php script never gets them. Has anyone had this problem and know how to fix it? |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Tue Apr 01, 2003 10:34 am Post subject: I think i have had that issue b4 |
|
|
Ok let's explain what's going on !
When using a e-mail or contact form you should always look for the SMTP server address that your e-mail provider has. Once you find out the SMTP address go to C:\windows and look for the file php.ini, note:You must have PHP installed from http://www.php.net now you want to edit your php.ini file open the php.ini file and look for
[mail function]
; For Win32 only.
SMTP = type your SMTP address here
and then after you do that you should be able to do those forms
YAHOO requires Authentication and i don't know how to do that so if you have Yahoo mail good luck LOL :D _________________ This web server is the best ! |
|
Back to top |
|
|
roadblock -
Joined: 01 Apr 2003 Posts: 3
|
Posted: Tue Apr 01, 2003 7:19 pm Post subject: not what i am talking about |
|
|
I will give you an example like a ShoutOut Box.
You have
<form action="sign.php" method="GET">
<input name="name">
<input name="comment">
<button vaule="submit">
</form>
when it runs "sign.php" i get the error for undefined var for $name & $comment
any help??? |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Wed Apr 02, 2003 12:15 am Post subject: Re: PHP not taking arguments |
|
|
roadblock wrote: | I am new to this web server but I am trying to run my php scripts with it. I setup the server for php and it does run it but my problem is that when i use forms that send arguments to a php script, the php script never gets them. Has anyone had this problem and know how to fix it? |
roadblock, this is a classical issue and would have found the solution just by reading some previous posts. Anyway, open your php.ini file and locatethe line:
register_globals=off
and change it with:
register_globals=on _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
webcoder -
Joined: 17 Apr 2003 Posts: 1
|
Posted: Thu Apr 17, 2003 8:53 am Post subject: Registering Global |
|
|
Hi aprelium,
That was the correct advise. :lol:
But, we have to keep in mind that latest versions of PHP are going to come with php.ini set like this only.
Not always it will be possible to alter the php.ini & more importantly, it is not a secure method.
Rather we should all start using global arrays.
:)
Best regards
WC |
|
Back to top |
|
|
|