Home › Forum › WP e Accessibilità › Inserimento dati e tripla A Wcag2
-
AutorePost
-
-
12 Ottobre 2009 alle 8:34 #11823dalzianiPartecipante
Ciao, la linea guida 3.3.6 delle wcag 2.0 prevede che l’utente possa rivedere i dati prima dell’invio definnitivo.
Cosଠho studiato un sistema che inserisco in tutti i miei siti (vedi ad esempio http://opere.4elementi.info/): una pagina di verifica dei dati che nel sistema WordPress può interfacciare comments.php del tema e wp-comments-post.php contenuto nella cartella principale.
Il formulario di comments.php passa il contenuto delle caselle a sendmail.php che lo passa a wp-comments-post.php per l’invio.
Tutto bene per gli utenti non registrati: la pagina che invia e la pagina che riceve hanno gli stessi campi, ma qunado l’utente è registrato i campi nome, e.mail, url scompaiono dal front-end del blog. La pagina ‘intefaccia’ funziona ugualmente ma i tre campi risultano vuoti e la tripla A va va vooma.
Sto quindi pensando a due ipotesi:
– una funzione if che porti alla visualizzazione (echo) di due formulari distinti (uno con tutti i vampi e l’altro con solo quello del messaggio) nella pagina sendmail.php, quella ‘di mezzo’, ma la funzione if che riconosce se l’utente è registrato funziona in comment.php e non nella nuova pagina sendmail.php;
– il richiamo dei dati nella nuova pagina sendmail.php mediante la funzione <?php get_userdata(userid); ?> , che però non funziona in detta pagina.
Che fare?
Un caro saluto
Francesco
-
24 Ottobre 2009 alle 13:24 #69001dalzianiPartecipante
Ciao,
mi rispondo da solo.
Ho risolto il problema creando due pagine di revisione dati:
sendmail.php e
sendmail2.php
Ho poi inserito una condizione nel ciclo If del file comments.php:
– se l’utente è loggato echo i primi tre tag del form che invia s sendmail2.php,
– else (l’utente non è loggato) echo i primi tre tag del form che invia s sendmail.php.
Entrambe sendmail.php e sendmail2.php puntano a wp-comments-post.php.
Spero sia utile.
Un caro saluto
Francesco
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.