Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- echo '
- <div style="border-bottom:1px solid 000;">
- <form id="form1" name="form1" method="post" action="?ac=newid">
- Número para adicionar: <label for="soma"></label>
- <input type="text" size="2" name="soma" id="soma" />
- <br> Itens: <br>
- <label for="textarea"></label>
- <textarea name="itens" id="itens" cols="100" rows="20"></textarea>
- <br>
- <input type="submit" name="button" id="button" value="Update" />
- </form>
- </div>
- ';
- /********************CÓDIGO************************/
- if($_GET['ac'] && $_GET['ac'] == 'newid'){
- //número pra fazer a soma ao id
- $soma = $_POST['soma']
- //campo dos itens
- $itens = $_POST['itens'];
- $itens = str_replace("<", "<", $itens);
- $itens = str_replace(">", ">", $itens);
- echo nl2br($itens)."<br><br>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement