p2psin.net - portale italiano del p2p p2psin.net - portale italiano del p2p p2psin.net - portale italiano del p2p

Portale Forum Regolamento Giochi
Torna indietro   Forum P2PSIN Italia > Applicazioni Web & Creazioni Siti > Creazione Siti Web

Notices

Tags: , , , ,

Scrivi una nuova discussione  Rispondi  
 
LinkBack Strumenti discussione Modalità visualizzazione
Vecchio 02-04-2008, 23:37   #1
Esperto Forummaio

 

Data registrazione: Jun 2007
Messaggi: 89
ghisirds è su una strada distinta
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:

Codice HTML:
<form name="_xclick" target="paypal" action="https://www.paypal.com/it/cgi-bin/webscr" method="post"><input type="hidden" name="phpMyAdmin" value="sQksF2SOhvL8RytNLh%2CIIQlqWq9" />
<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> 
Mentre è questo per il pulsante aggiungi al carrello:

Codice HTML:
<form name="_xclick" target="paypal" action="https://www.paypal.com" method="post"><input type="hidden" name="phpMyAdmin" value="sQksF2SOhvL8RytNLh%2CIIQlqWq9" />
<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> 
Come doctype utilizzo questo:

Codice 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"> 
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 [Solo gli utenti registrati possono visualizzare tutti i links]
, forum [Solo gli utenti registrati possono visualizzare tutti i links]
, nuovi [Solo gli utenti registrati possono visualizzare tutti i links]
(original gift in inglese)
ghisirds non è connesso   Rispondi citando
Sponsored Links
Rispondi


Strumenti discussione
Modalità visualizzazione

Regole di scrittura
Non puoi postare nuovi argomenti
Non puoi postare repliche
Non puoi postare allegati
Non puoi editare i tuoi post

BB code è Attivato
Le faccine sono Attivato
Il codice [IMG] è Attivato
Il codice HTML è Disattivato
Trackbacks are Disattivato
Pingbacks are Disattivato
Refbacks are Disattivato


Tutti gli orari sono GMT +1. Adesso sono le 01:16.


Powered by vBulletin versione 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Traduzione italiana : www.vbulletin.it
Copyright P2PSIN Italia 2005 - 2008 ®