hey there I tried you form parse code and get a 500 error, Premature end of script headers, where in the code is it not complete? Thanks
sub form_parse {
read(STDIN, $buffer,$ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair(@pairs){...
hi again perluserpengo
I used you suggestion for the parse and it still only outputs 1 value
read(STDIN, $buffer,$ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair(@pairs){
($name,$value)=split(/=/, $pair);
$value =~ tr/+/ /;
$value=~ s/%(..)/pack("c",hex($1))/ge...
hy there perluserpengo
Can you show a complete example of what you mean, I honeselty dont understand anything I am coding. I work from examples, see what others have done and tweak as best I can to get it tp produce the results I need. I only used
$value =~ s/<!--(.|\n)*-->/ /g;
$value =~...
hello I am at my wits end. I am having trouble processing multi-select lists and checkboxes then sendind the form data to my sql database. it creates/updates the record fine. however it never post all the data from the checked boxes, uses only one. I am using perl/cgi scripts. Here is 1 sample...
excuse me yes there is. REPLACE is use in place of INSERT in instances where a record exists already containing the key which is "username". Why dont you stick to the problem I asked. The REPLACE isn not the problem, parsing all the checked boxes is the problem...
hello I am at my wits end. I am having trouble processing multi-select lists and checkboxes then sendind the form data to my sql database. it creates/updates the record fine. however it never post all the data from the checked boxes, uses only one. I am using perl because I dont know any php...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.