Affichage des articles dont le libellé est Re: How to display email from $_POST. Afficher tous les articles
Affichage des articles dont le libellé est Re: How to display email from $_POST. Afficher tous les articles

Re: How to display email from $_POST

samedi 24 janvier 2015

Holy smoke, what was I even thinking. I totally put sprintf in the wrong place, and markup shouldn't be in a text string.



* Carvin performs epic facepalm at his own lapse in judgement.



Do over.

[code]

<?php



// Sources/SomeEmailMod.php

function s...



Re: How to display email from $_POST

Re: How to display email from $_POST

Putting variables directly into $txt is frowned upon and doubly so in Modifications as a language file because the odds of it being declared before loading are limited.



Better to use sprintf and do it properly (since SMF itself is moving away from vari...



Re: How to display email from $_POST

Re: How to display email from $_POST

Well, you can start by checking that $_POST['email'] is defined before using it. But there are considerably bigger problems here. For one thing, calling request variables from a language file is a no no. They need to be validated on the source side, th...



Re: How to display email from $_POST
 

Lorem

Ipsum

Dolor