我想從一個textareatextarea的動態變量
<form>
<textarea name="dynamicText">Hello my name is [name]</textarea>
<button type="submit">Send</button>
</form>
PHP代碼實施例
$text = $_POST['dynamicText'];
$name = "John Doe";
// i need some function ...
echo $text;
//Output --> Hello my name is John Doe
輸出I想
Hello my name is John Doe
你在哪裏找到這個名字? –
和修復** texteare ** –