HTML formulier probleempje...

Status
Niet open voor verdere reacties.

maarten2001

Banned
Lid geworden
30 dec 2009
Berichten
217
Ik wil graag een PHP code zodat je tekst in een textarea online kunt opslaan.

Dit is mijn html pagina code:


HTML:
<html>
<head>
<SCRIPT>
<!-- Voor de leukste scripts gaat u naar...-->
<!-- Javascript by Con-nect.nl The source for all your Javascript and PHP -->
<!-- http://www.con-nect.nl -->

function ReadCookie (Name)
{
	var search = Name + "="
	if (document.cookie.length > 0)
	{
		offset = document.cookie.indexOf(search)
		if (offset != -1)
		{
			offset += search.length 
			end = document.cookie.indexOf(";", offset) 
			if (end == -1)
				end = document.cookie.length
			return (document.cookie.substring(offset, end))
		}
		else
			return ("");
	}
	else
		return ("");
}

function WriteCookie (cookieName, cookieValue, expiry) 
{
	var expDate = new Date();

	expDate.setTime (expDate.getTime() + expiry);
	document.cookie = cookieName + "=" + escape (cookieValue) + "; expires=" + expDate.toGMTString() + "; path=/";
}

function getCookies()
{
	document.noteForm.note.value = unescape(ReadCookie("note"));
}
</SCRIPT>
<title>Microsoft Office Word 2007</title>
</head>
<body style="font-size:62.5%;" onload=getCookies() background="img/background.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no">
<table height=24 width=480 bgcolor=#3BB9FF background=img/overhead.jpg cellspacing=0 cellpadding=0><tr>
<td><form name=noteForm>
&nbsp;
<input type="image" src="img/save.jpg" onclick="WriteCookie('note', document.noteForm.note.value, 2678400000)">
&nbsp;
<input type="image" src="img/new.jpg" onclick="document.noteForm.reset(); return false;">
&nbsp;
<a href="javascript:location.reload(true)"><img src="img/refresh.jpg" WIDTH=16 HEIGHT=18 border="0" /></a>
&nbsp;
<a href="vraag.html"><img src="img/vraag.jpg" WIDTH=17 HEIGHT=17 border="0" /></a>
</table>
<table cellspacing=0 cellpadding=0 border=0 width=480><tr><td width=480 height=25 bgcolor=#306EFF colspan="2" background="img/head.jpg">&nbsp;<img src="img/side.jpg"></td></tr><tr><td width=24 background="img/right.jpg"></td>
<td width=456><center><br><TEXTAREA class=invul name=note rows=10 wrap=VIRTUAL cols=40></textarea><br />
</form></td></tr></table>
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan