-1

I Have Problem Like This problem

And This The Code

    <?php 
        if(isset(($_POST['nama'] || $_POST['alamat']))
        {
            echo "Nama : ". $_POST['nama']. "<br>";
            echo "Alamat : ". $_POST['alamat']. "<br>";
        }
    ?>
    <?php 
       if(isset($_GET['input']))
        {
            echo "Your Input : ". $_GET['input']. "<br>";
        }
    ?>

Can Help Me

VIKAS KATARIYA
  • 5,867
  • 3
  • 17
  • 34
  • put your sction in your form tag. form method post and submit button type submit – VIKAS KATARIYA Sep 28 '19 at 15:31
  • @PHP Regarding [your edit](https://stackoverflow.com/review/suggested-edits/24172253). Why are you modifying code by adding something to what did not exist? I am rejecting the edit. – Funk Forty Niner Sep 28 '19 at 15:43

2 Answers2

0

It`s work for me

<?php 
                if(isset($_POST['nama']) || isset($_POST['alamat']))
                {
                    echo "Nama : ". $_POST['nama']. "<br>";
                    echo "Alamat : ". $_POST['alamat']. "<br>";
                }
            ?>
            <?php 
                if(isset($_GET['input']))
                {
                    echo "Your Input : ". $_GET['input']. "<br>";
                }
            ?>
Yaser Darzi
  • 1,480
  • 12
  • 24
-1

try this :)

            <?php 
                if(@$_POST['nama'] || @$_POST['alamat'])
                {
                    echo "Nama : ". $_POST['nama']. "<br>";
                    echo "Alamat : ". $_POST['alamat']. "<br>";
                }
            ?>
            <?php 
                if(@$_GET['input'])
                {
                    echo "Your Input : ". $_GET['input']. "<br>";
                }
            ?>

it must work