Skip to content

Instantly share code, notes, and snippets.

@danilowm
Created February 1, 2012 20:10
Show Gist options
  • Select an option

  • Save danilowm/1719041 to your computer and use it in GitHub Desktop.

Select an option

Save danilowm/1719041 to your computer and use it in GitHub Desktop.
If de uma linha PHP
<?php
// Se existir $_GET['nome'] retorna o valor, senão, retorna vazio
$nome = isset($_GET['nome']) ? $_GET['nome'] : '';
$email = isset($_GET['email']) ? $_GET['email'] : '';
$mensagem = isset($_GET['mensagem']) ? $_GET['mensagem'] : '';
echo $nome.'<br/>'.$email.'<br/>'.$mensagem;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment