Re: [PHP] problems with PHP code (Please help!)

2002-11-19 Thread Justin French
Ask your host to set-up a .htaccess file to turn register_globals ON, or you
need to do some research in the archives for register globals... it's been
discussed to death.

Basically, instead of a form value being something like $firsName, it's now
$_POST['firstName'] or $_GET['firstName'] (depending on the the method
specified in the form  tag).


A quick fix would be to take note of the variables you're expecting from the
form, and re-assign them at the top of your script(s), eg:

?
$first = $_POST['first'];
$last = $_POST['last'];
$dob = $_POST['dob'];
$favcolor = $_POST['favcolor'];
?
html
...

Good luck,

Justin French






on 19/11/02 6:41 PM, `Yan Grossman ([EMAIL PROTECTED]) wrote:

 Dear Friends,
 
 I run some PHP scripts to deal with sending forms data to my email adress.
 But, my nice Host provider upgraded the server to another version of PHP 4
 and I notice that now the scripts are not working.
 I don't receive the emails anymore.
 They say I have to make sure all my code works for PHP 4.23 or later...
 My code is very simple and uses the command mail().
 I don't know much about PHP, but I guess it should be simple to fix my
 problem.
 I attached one of my most simple scripts and hoping that you might be able
 to help me.
 Please help me.
 I really must fix this today.
 Thank you so much.
 
 Yan
 
 

Justin French

http://Indent.com.au
Web Developent  
Graphic Design



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




[PHP] problems with PHP code (Please help!)

2002-11-18 Thread `Yan Grossman
Dear Friends,

I run some PHP scripts to deal with sending forms data to my email adress.
But, my nice Host provider upgraded the server to another version of PHP 4
and I notice that now the scripts are not working.
I don't receive the emails anymore.
They say I have to make sure all my code works for PHP 4.23 or later...
My code is very simple and uses the command mail().
I don't know much about PHP, but I guess it should be simple to fix my
problem.
I attached one of my most simple scripts and hoping that you might be able
to help me.
Please help me.
I really must fix this today.
Thank you so much.

Yan


begin 666 cadastro.php
M/#\-FEF(@DW5B;6ET(#T]()%;G9I87(B*2![#0HDW5B:F5C= ]()3
M3D]70E)!4TE,(%M#861AW1R;UTB.PT*)')E8VEP:65N=#T@(GEA;D!S;F]W
M8G)AVEL+F-O;2YBB([#0HD:]R85]EG)A9$]9%T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W+FQO8V%T:6]N(#T@(BXN+W-N;W=BF%S:6PO8V%P82YH
M=TB#0H@?0T*( T*('-E=%1I;65O=70H(G)E9ER96-T*D[(BP@,C P,D-
MB\O+2T^( T*/]30U))4%0^#0H\8F]D2!B86-K9W)O=6YD/2)H='1P.B\O
M=W=W+G-N;W=BF%S:6PN8V]M+F)R+W-N;W=BF%S:6PO8F%C:RYJB()G
M8V]L;W(](B-1D91D8B('1E'0](B,P,#8V0T,B(QI;FL](B-1D91D8B
M('9L:6YK/2(C1D91D9(B!A;EN:STB(T91D91B(@;VY,;V%D/2(B()A
M8VMGF]U;F0](F)A8VLN:G!G(B!L969T;6%R9VEN/2(P(B!T;W!M87)G:6X]
M(C B(UAF=I;G=I9'1H/2(P(B!M87)G:6YH96EG:'0](C B/@T*/' ^)FYB
MW [/]P/@T*/' ^)FYBW [/]P/@T*/' ^)FYBW [/]P/@T*/'1A8FQE
M('=I9'1H/2(T,S@B()G8V]L;W(](B,P,#DY8V,B(%L:6=N/2)C96YT97(B
M()OF1ECTB,2(@8F]R95R8V]L;W(](B,S,S,S,S,B/@T*( \='(^( T*
M( @(#QT9!H96EG:'0](C0W(CX@#0H@( @( \9EV(%L:6=N/2)C96YT
M97(B/CQF;VYT(9A8V4](D%R:6%L(B!S:7IE/2(T(B!C;VQOCTB,# P,# P
M(CY3974@8V%D87-TF\@9F]I(5N=FEA9\A/)R/@T*5F]CZB!R96-E8F5R
MX2!O('!R\WAI;6\@:6YF;W)M871I=F\@4VYO=V)R87-I;X\8G(^#0I/8G)I
M9V%D;RX\+V9O;G0^/9O;G0@9F%C93U!FEA;!S:7IE/38^(#PO9F]N=#X\
M+V1I=CX-B @( \+W1D/@T*( \+W1R/@T*/]T86)L93X-CPO8F]D3X-
*CPO:'1M;#X-@``
`
end


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