noob: convert decimal to binary help!

Alright so i was at barnes and noble (favorite place to be) and i was reading tcp/ip book and it showed about 32 bit conversion from decimal to binary using 128s 64s 32s 16s and so on and when i got home i googled php using decimal coversion to binary and i found the decbin function and ive made my first script ever

here is the php script:

<?php // this is the converter for decimal to binary : Echo decbin("")"
"); Echo decbin("")"
"); Echo decbin("")"
"); Echo decbin("") now what i want to do is make a simple form to conver the decimal to binary using this simple form. how can i connect them so i can enter the data and when i hit submit it will go to my "data.php" page and show the results

Type Ip Address to convert to binary:

am i on the right track? i know this may sound kinda dumb for a nooby to be doing and it wont really serve a purpose but it will be my first application in php and its kinda cool
Sponsor our Newsletter | Privacy Policy | Terms of Service