Jump to content

Help to debug


thar

Recommended Posts

For starters I will tell that php is very new for me. I've tried to create a script that tells about the numbers or more than it will be posted through an input field.

But it will not work and I can not even see the error.

 

Hope someone can help...

 

<form method="POST" action="<?php $_SERVER['PHP_SELF'] ?>">

            <input type="text" name="felt" value="" />

            <input type="Submit" name="Submit" value="TEST" />

        </form>

   

       

        <?php

       

            $kode1 = $_POST['felt'];

       

            if(isset($_POST['felt']))

            {

                echo $kode1;

                echo " : ";

               

            if(is_int($kode1))

            {

                echo "here is only written numbers!";

            }

           

            else

            {

                echo "here is written both letters and numbers!";

            }

           

            }

           

        ?>   

Link to comment
https://forums.phpfreaks.com/topic/192678-help-to-debug/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.