-1
其關於php的問題我有一個名爲data.txt的文本文件,我在其中存儲了數據。 現在我需要在註冊學生的文本字段中鍵入名稱,他在網頁或其他文本文檔中顯示此學生的數據php用於在特定單詞中搜索文本文檔
附加到問題存儲從註冊表格輸入數據的第一個代碼
<?php
$i=1;
$fp= fopen("data.txt","a+");
$file_content= "Data for student number".$i++."\r\n". "name:" .$_POST['fullname']."\r\n" ."age:" .$_POST['age'] ."\r\n". "email:" .$_POST['email']."\r\n**********************************************************************" ;
fwrite($fp,$file_content);
fclose($fp);
echo "congratulations ! your data is stored";
?>
後的代碼,你現在寫的......請參見http://php.net/preg_match ... – MarcoS
用於該用途的數據庫... – Passerby
我會盡力幫忙的preg_match感謝 – user2990172