Salve a tutti,
ho uno script cosi strutturato:
Tutto questo rimanda il valore editato alla pagina save.php che invece ha il seguente codice:Codice PHP:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Chapter 12</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="prototype.js" type="text/javascript"""></script>
<script src="scriptaculous.js" type="text/javascript"""></script>
<script type="text/javascript">
document.observe('dom:loaded', function() {
new Ajax.InPlaceEditor('team_name', 'save.php');
});
</script>
<style type="text/css" media="screen">
body {
font: 67.5% "Lucida Grande", Tahoma, sans-serif;
}
</style>
</head>
<body>
<h1 id="team_name">The Fighting Federalists</h1>
</body>
</html>
Ora così facendo posso ottenere nella mia pagina php il valore inviatomi da ajax, ma se volessi ottenere pure l'id e cioè team_name? come posso fare?Codice PHP:<?php echo $_REQUEST['value']; ?>
Sinceramente non so se è un problema da postare a voi o nel topic sul php.


Rispondi quotando