Adesso ho cambiato una cosa, mi compare il bottone invia, ma io vorrei inviare l'id...
e nell'altro file al posto di aggiungi al carrello ho messo:Codice PHP:if (window.ActiveXObject)
{
htmlString += "<td>" + header[i].childNodes[0].text + "</td>";
htmlString += "<td>" + header[i].childNodes[1].text + "</td>";
htmlString += "<td>" + header[i].childNodes[2].link + "</td>";
}
else
{
htmlString += "<td>" + header[i].childNodes[0].textContent + "</td>";
htmlString += "<td>" + header[i].childNodes[1].textContent + "</td>";
var id= header[i].childNodes[2].textContent
htmlString += "<td><form action='../SITOTSWUBUNTU/ecomm_view_product.php?id=id' ><input type='submit' value='Aggiungi al carrello'>" + "</form></td>";
}
Mi stampa aggiungi al carrello,mi manda al link desiderato, ma non mi manda l'id!Codice PHP:$id = $xml->createElement('id');
$id = $user->appendChild($id);
$value = $xml->createTextNode($row['id']);
$value = $id->appendChild($value);
dove è l'errore?
Cmq anche se per caso nel link metto: "miofile.php?id=1"
non me lo vede cmq... mi porta a miofile.php e basta...
una soluzione?

Rispondi quotando