basic program to write in php
I have coded a basic program now I am trying to write it in php
here is the basic code


    INPUT SELECTCO
    IF SELECTCO=1 THEN [1]
    IF SELECTCO=2 THEN [2] ELSE CLS: GOTO [SELECT]

    [1]
    PRINT "DATA REQUIRED:"
    PRINT "1. CUMULATIVE OIL PRODUCTION Np (STB)= "
    PRINT "2. CURRENT OIL FORMATION VOLUME FACTOR Bo(RB/STB) = "
    PRINT "":INPUT "PRESS ANY KEY";LIMIT

    [INP1]
    INPUT "1. CUMULATIVE OIL PRODUCTION Np(STB) = ";NP: IF NP<=0 THEN PRINT "ZERO OR      NEGATIVE VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP1]
    [INP2]
    INPUT "2. CURRENT OIL FORMATION VOLUME FACTOR Bo(RB/STB) = ";BO: IF BO<=0 THEN PRINT    "ZERO OR NEGATIVE VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP2]

    [2]
    PRINT "": PRINT "DATA REQUIRED:"
    PRINT "1.CUMULATIVE OIL PRODUCTION Np (IN STB)"
    PRINT "2.CURRENT OIL FORMATION VOLUME FACTOR Bo IN (RB/STB)"

    [INP21]
    INPUT "1.CUMULATIVE OIL PRODUCTION Np IN STB";NP: IF NP<=0 THEN PRINT "ZERO OR NEGATIVE  VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP21]

    [INP22]
    INPUT "2.CURRENT OIL FORMATION VOLUME FACTOR Bo IN RB/STB";BO: IF BO<=0 THEN PRINT "ZERO OR NEGATIVE VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP22]


how this can be written in php any hint ?


basic program to write in php
===

I have coded a basic program now I am trying to write it in php
here is the basic code


    INPUT SELECTCO
    IF SELECTCO=1 THEN [1]
    IF SELECTCO=2 THEN [2] ELSE CLS: GOTO [SELECT]

    [1]
    PRINT "DATA REQUIRED:"
    PRINT "1. CUMULATIVE OIL PRODUCTION Np (STB)= "
    PRINT "2. CURRENT OIL FORMATION VOLUME FACTOR Bo(RB/STB) = "
    PRINT "":INPUT "PRESS ANY KEY";LIMIT

    [INP1]
    INPUT "1. CUMULATIVE OIL PRODUCTION Np(STB) = ";NP: IF NP<=0 THEN PRINT "ZERO OR      NEGATIVE VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP1]
    [INP2]
    INPUT "2. CURRENT OIL FORMATION VOLUME FACTOR Bo(RB/STB) = ";BO: IF BO<=0 THEN PRINT    "ZERO OR NEGATIVE VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP2]

    [2]
    PRINT "": PRINT "DATA REQUIRED:"
    PRINT "1.CUMULATIVE OIL PRODUCTION Np (IN STB)"
    PRINT "2.CURRENT OIL FORMATION VOLUME FACTOR Bo IN (RB/STB)"

    [INP21]
    INPUT "1.CUMULATIVE OIL PRODUCTION Np IN STB";NP: IF NP<=0 THEN PRINT "ZERO OR NEGATIVE  VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP21]

    [INP22]
    INPUT "2.CURRENT OIL FORMATION VOLUME FACTOR Bo IN RB/STB";BO: IF BO<=0 THEN PRINT "ZERO OR NEGATIVE VALUE! ENTER AGAIN":INPUT "";LIMIT: GOTO [INP22]


how this can be written in php any hint ?

