i'm totally bugged from this problem... i need to know how to rewrite this PHP code, into jquery so we are making the check and going over the foreach method on other event, here is the code:
<?php
$aTc = array("c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl");
if($_POST['formSubmit']) {
if(!$tags = $_POST['item']) {
exit ;
}
foreach($tags[tags] as $ko) {
if(in_array($ko, $aTc)) {
$ra .= "$ko ";
}
}
echo "$ra";
}
?>
=operator in ifif(!$tags = $_POST['item'])