| Autore |
Messaggio |
ghisirds
Nuovo entrato

Registrato: 13 Nov 2007
Messaggi: 11
Utente
Status: Offline
|
 Inviato:
04 Feb 2008 - 23:10 |
|
| Oggetto: Come validare in w3c il carrello di paypal? |
Ciao a tutti.
Dopo ore perse inutilmente, non sono riuscito a far validare il carrello fornito da paypal: mi da un sacco di errori che non riesco a risolvere.
Il codice fornito da loro è questo per visualizzare il carrello:
[HTML]<form name="_xclick" target="paypal" action="https://www.paypal.com/it/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="image" src="https://www.paypal.com/it_IT/i/btn/view_cart.gif" border="0" name="submit" alt="Effettua i tuoi pagamenti con PayPal. È un sistema rapido, gratuito e sicuro.">
<input type="hidden" name="display" value="1">
</form>[/HTML]
Mentre è questo per il pulsante aggiungi al carrello:
[HTML]<form name="_xclick" target="paypal" action="https://www.paypal.com" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="item_name" value="HTML book">
<input type="hidden" name="amount" value="24,99">
<input type="image" src="http://www.paypal.com/it_IT/i/btn/sc-but-01.gif" border="0" name="submit" alt="Effettua i tuoi pagamenti con PayPal. È un sistema rapido, gratuito e sicuro.">
<input type="hidden" name="add" value="1">
</form>[/HTML]
Come doctype utilizzo questo:
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">[/HTML]
Uno degli errori che più comunemente mi riporta è questo:
| Citazione: |
document type does not allow element "form" here; missing one of "object", "applet", "map", "iframe", "ins", "del" start-tag.
….com/it/cgi-bin/webscr" method="post">
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). |
oppure questo:
| Citazione: |
end tag for "input" omitted, but OMITTAG NO was specified.
<input type="hidden" name="cmd" value="_cart">
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">". |
e a volte altri.
Qualche anima pia sa come correggere il codice una volta per tutte così che vada bene per sempre?
Grazie mille e un saluto
__________________
sito sulla filosofia on line, forum scuola primaria, nuovi regali bambini (original gift in inglese) |
|
|
|
 |
Bonzo
Moderatore


Registrato: 08 Set 2004
Messaggi: 338
Località: Arezzo
Utente passivo
Status: Offline
|
 Inviato:
08 Mag 2008 - 15:13 |
|
|
|
|
 |
ghisirds
Nuovo entrato

Registrato: 13 Nov 2007
Messaggi: 11
Utente passivo
Status: Offline
|
 Inviato:
10 Mag 2008 - 19:49 |
|
|
già risolto... ma buona per la prossima!
grazie
ciao |
|
|
|
 |
|
|
Powered by MDForum 2.0.8© 2003-2007 MAXdev Tema grafico by subRebel del sito ktauber modificato e ottimizzato per MDForum da TiMax Supporto italiano by Open Italia |
| |