PDA

View Full Version : مشکل تو html - محتویات textbox رو میخام تو یه فایل txt ذخیره کنم



Fiboonatchi
دوشنبه 26 تیر 1391, 18:36 عصر
با سلام .
مشکلم اینه میخوام محتویات textbox رو تو یه فایل txt ذخیره کنم تو html
مثلا کد من اینه چطور میتونم به فایل txt وصلش کنم؟




<html>
<head>
<title>send data</title>
</head>
<body>
<form method="post" action="save.php">
<input type="text" name="user" />
<button type="submit" name="save">Save</button>
</form>
</body>
</html>

Fiboonatchi
دوشنبه 26 تیر 1391, 22:12 عصر
کسی نیست بلد باشه؟

dousti_design
دوشنبه 26 تیر 1391, 22:35 عصر
دو تا راه داره.
یا با یه زبان سرور ساید این کارو بکن و یا کلاینت ساید.
http://www.roseindia.net/javascript/javascriptexamples/javascript-write-to-text-file.shtml
این جاواش.
http://php.net/manual/en/function.fwrite.php
اینم پی اچ پی