Hi
I maintain my own web site but it was designed and coded by someone else. I blunder my way around with cut and past and have successfully managed to maintain it for several years. The URL is www.singforjoy.org.nz. One page, registrationnew.php is for registration for workshops (code included below). It has a line
extract($HTTP_POST_VARS,EXTR_SKIP);
Some time ago, in preview mode I started getting this error:
Warning: extract() expects parameter 1 to be array, null given in C:\Users\maxnew\Documents\aSingForJoy\WebPHP\registrationnew.php on line 53 (the extract line). However, it still worked fine online and has been until a couple of weeks ago. Yesterday I edited the page to add a couple of workshops and posted it online. When I tested it, I found it doesn’t work. I can fill out the form and hit Send email now, but nothing happens.
I have searched for $HTTP_POST_VARS in the page and in the included header and footer pages but can’t find any trace of the array or where it is defined. Whether this is the problem or not I don’t know and I have no idea what the contents of the array would be.
I am using Rapid PHP 2014, version 12.2 as an editor and my host is running php 5.3. I can modify this to 5.4,5 or 6.
Thanks in advance if you can help with this.
Max Maxwell
REGISTRATIONNEW.PHP
[code]<?
$heading = “Workshop Registration”;
include (“includes/header.php”);?>
// header info $theMessage = “Name : “.$visitorname.”\n\n”; if (isset($wk1)){$theMessage = $theMessage .“SingForJoy, Term 1”."\n\n";}
} ?> <? if (isset($sendemail)) {?>
Thank you, your registration has been sent
<?}?>
|
END OF REGISTRATIONNEW.PHP
[/code]
INCLUDES/HEADER.PHP
[code]
Max Maxwell Sing For Joy singing workshops and Community Choir
|