我在做一種形式,當用戶點擊提交,我希望它隱藏表單,並顯示出部分,說:「謝謝你,等等等等」PHP可以像jQuery一樣操作(顯示/隱藏)div元素嗎?
我使用PHP/PEAR郵件廠:
$mailObj =& Mail::factory('mail');
$bool = $mailObj->send($recipient, $headers, $body);
if($bool)
echo "Thank you for your submission.";
else
echo "There was a problem processing your request.";
$body = ""; // clear the body