כן אבל זה לא כלכך מה שאני מנסה לעשות
בניתי את הדבר הבא:
PHP קוד:
//If no results
if (empty($query_news) && empty($query_videos) && empty($query_pages)) {
global $new_value;
$html.="<font style='color: red;font-weight: bold;'>לא נמצאו תוצאות בכל האתר<br/></font>";
$match=preg_match("/[a-z]/", $w_search) ? "אולי חפש במקום: <u><a href='javascript: void(0);' onclick=\"document.getElementById('w_search').value='".$new_value."';document.search_form2.submit();\">".$new_value."</a></u>" : null;
$new_value=$match==null ? keyboard_en_to_heb($w_search) : null;
$html.=$match;
}
בהתחלה המשתנה $new_value ריק
אבל אני צריך שהמשתנה $match ידע את הערך הבא של $new_value שמוגרדת בסוף הסקריפט