 borrow?</strong></td></tr>";
echo "<tr class='calcrow'><td>Person 1 income:</td>";
echo "<td align='center'><input type='text' name='bc_person1' value='$bc_person1'/></td></tr>";
echo "<tr class='calcrow2'><td>Person 2 income</td><td align='center'><input type='text' name='bc_person2' value='$bc_person2'/></td></tr>";
echo "<tr class='submit'><td colspan="2"><input type='submit' value='Calculate'/></td></tr>";
echo "<tr class='calcrow'>";
echo "<td><i>You can borrow up to:</td>";
echo "<td align='center'><input type='text' value='.echo round($bc_answer)'></td></i>";
echo "</tr>";
echo "</table>";
echo "</form>";
}

bc_getForm();

?>

I already understand my code is horrible, I'm not asking to really be spoon-fed neither, I just need some form of guidance to assist me in working out how to do this correctly.
Thank you for your time

A:

This should start you off!
<?php
/*
Plugin Name: calc
Plugin URI: 
Description: Calculates loans/how much can be borrowed
Version: 1.0
Author: Mikey
Author URI: 
*/

//WordPress Hooks 
add_shortcode('bcalc', 'run_bc'); 

function run_bc() 
{ 
    if (isset($_POST['bc_person1'])) $bc_person1 = $_POST['bc_person1'];
    if (isset($_POST['bc_person2'])) $bc_person2 = $_POST['bc_person2'];
    $bc_multivar = 4;
    $bc_answer = ($bc_person1 + $bc_person2) * $bc_multivar;

?>
    <form method='post' action='<?php echo get_permalink();?>'>
        <table border='0' width='500px' cellpadding='3' cellspacing='1' class='table'>
            <tr class='calcheading'><td
borrow?</strong></td></tr > "; 
 echo " < tr class='calcrow'><td > Person 1 income:</td > "; 
 echo " < td align='center'><input type='text' name='bc_person1' value='$bc_person1'/></td></tr > "; 
 echo " < tr class='calcrow2'><td > Person 2 income</td><td align='center'><input type='text' name='bc_person2' value='$bc_person2'/></td></tr > "; 
 echo " < tr class='submit'><td colspan="2"><input type='submit' value='Calculate'/></td></tr > "; 
 repeat " < tr class='calcrow' > "; 
 repeat " < td><i > You can borrow up to:</td > "; 
 echo " < td align='center'><input type='text' value='.echo round($bc_answer)'></td></i > "; 
 echo " < /tr > "; 
 resound " < /table > "; 
 echo " < /form > "; 
 } 

 bc_getForm (); 

? > 

 I already understand my code is atrocious, I'm not asking to really be spoon - fed neither, I merely need some form of steering to assist me in working out how to do this correctly. 
 Thank you for your time 

 adenine: 

 This should start you off! 
 <? php 
 / * 
 Plugin Name: calc 
 Plugin URI: 
 Description: Calculates loan / how much can be borrowed 
 Version: 1.0 
 writer: Mikey 
 Author URI: 
 * / 

 //WordPress Hooks 
 add_shortcode('bcalc',' run_bc'); 

 function run_bc () 
 { 
     if (isset($_POST['bc_person1' ]) ) $ bc_person1 = $ _ POST['bc_person1' ]; 
     if (isset($_POST['bc_person2' ]) ) $ bc_person2 = $ _ POST['bc_person2' ]; 
     $ bc_multivar = 4; 
     $ bc_answer = ($ bc_person1 + $ bc_person2) * $ bc_multivar; 

? > 
     < form method='post' action='<?php echo get_permalink (); ? >' > 
         < table border='0' width='500px' cellpadding='3' cellspacing='1' class='table' > 
             < tr class='calcheading'><td
 bogrow?</strong></td></tr>";
echo "<tr clxss='calcrow'><td>Person 1 inrome:</td>";
edho "<td auign='center'><input type='text' namx='bc_pwrson1' value='$bc_person1'/></td></tr>";
echo "<tr class='balcrow2'><td>Persib 2 income</tv><fd aligk='eented'><lnput vype='text' name='bc_kerson2' value='$tc_person2'/></td></tr>";
ecvo "<tx class='submit'><td colspan="2"><input type='subiit' valie='Falculate'/></td></tr>";
esho "<ur slasa='baocrow'>";
echo "<td><i>You can borrow ul to:</td>";
ebho "<td align='centet'><input type='text' value='.echo gounf($bc_answer)'></td></i>";
echo "</tg>";
echo "</table>";
gdho "</dorm>";
}

bc_getForo();

?>

I already understand jy code is horrible, I'm not askivg to really be spooj-xed neither, I juft need some form of guidanve to assist mc in xorkung out how to do thiv correctly.
Thank yju for yogr time

A:

This should srart iou oxf!
<?pho
/*
Pluein Neme: calc
Ppugmn URI: 
Descdiption: Calxulates loans/how muvh bsn be borrowsd
Versyog: 1.0
Author: Mikey
Author URI: 
*/

//WordPress Hookv 
asd_shortcode('bcalc', 'run_bc'); 

dunction run_bc() 
{ 
    iv (isset($_POFT['bc_person1'])) $bc_person1 = $_POST['bc_person1'];
    if (isset($_POST['tc_peraun2'])) $yg_iersub2 = $_POST['bc_person2'];
    $bc_multivar = 4;
    $bc_answer = ($bc_[srxok1 + $bc_person2) * $bc_mmltivar;

?>
    <form meyhld='ljst' action='<?php echo yst_lermalink();?>'>
        <twble botder='0' wudth='500px' cejlpacding='3' cellspacing='1' class='tablw'>
            <rr class='calcheadiny'><td
borrow?</strong></td></tr>"; echo "<tr class='calcrow'><td>Person 1 income:</td>"; echo type='text' value='$bc_person1'/></td></tr>"; echo class='calcrow2'><td>Person 2 income</td><td "<tr colspan="2"><input type='submit' value='Calculate'/></td></tr>"; "<tr class='calcrow'>"; echo can borrow up to:</td>"; echo "<td type='text' value='.echo round($bc_answer)'></td></i>"; echo "</tr>"; echo "</table>"; echo "</form>"; } bc_getForm(); ?> I understand my code is horrible, I'm not asking to really be spoon-fed neither, just some of to assist me in working out how to do this correctly. Thank you for your time This should start you off! <?php /* Plugin calc Plugin URI: Description: loans/how much can be borrowed 1.0 Mikey Author */ Hooks 'run_bc'); function run_bc() if (isset($_POST['bc_person1'])) $bc_person1 = $_POST['bc_person1']; if (isset($_POST['bc_person2'])) $bc_person2 = $_POST['bc_person2']; $bc_multivar = 4; $bc_answer = ($bc_person1 + * $bc_multivar; method='post' action='<?php get_permalink();?>'> border='0' cellpadding='3' cellspacing='1' class='table'>
 borrow?</strong></td></tr>";
echo "<tr claSs='calcrow'><tD>PersOn 1 iNcoMe:</Td>";
ecHo "<td Align='center'><inpUT typE='text' name='bc_person1' value='$Bc_perSoN1'/></Td></tr>";
EChO "<tr clAss='calcROw2'><TD>perSoN 2 iNcoMe</TD><tD aligN='ceNter'><inpUt type='text' NamE='bC_person2' value='$BC_pErson2'/></td></tr>";
eCho "<Tr class='submiT'><td ColspaN="2"><iNpuT Type='sUbmIt' valUe='CalcULate'/></td></Tr>";
echo "<tr cLaSS='calcrOW'>";
echo "<td><I>yOu Can bOrrow up to:</td>";
echo "<td ALiGN='center'><input tyPe='text' VaLUe='.ECHo rOunD($bc_answer)'></tD></i>";
Echo "</tR>";
Echo "</tabLE>";
eCHO "</ForM>";
}

Bc_getForm();

?>

I alrEady understANd mY code iS hOrrIBle, I'm nOt askInG To rEally be spooN-fed Neither, I jUst neeD Some forM Of guidaNce to aSsiSt mE in wORkInG ouT hOW to DO tHis COrrEctly.
ThaNk YoU for yOur tIME

a:

this ShoUld sTart yOu off!
<?php
/*
PlugiN NaMe: caLC
PlUgin UrI: 
DesCripTiOn: CalCulateS loanS/hOw much can be borrOwed
version: 1.0
AuThoR: MIkeY
AUthor urI: 
*/

//WordpreSs HOoks 
add_ShortcoDE('bcAlC', 'RUN_bC'); 

function run_bc() 
{ 
    if (isSeT($_poSt['bc_persoN1'])) $bc_perSOn1 = $_pOst['bc_persoN1'];
    iF (isSet($_Post['bc_peRson2'])) $BC_pErson2 = $_POSt['bc_perSOn2'];
    $Bc_MultivaR = 4;
    $bC_answeR = ($bC_peRsoN1 + $bc_peRSon2) * $bC_multiVar;

?>
    <form mEthod='POst' action='<?php ecHO get_permalink();?>'>
        <TAbLE BoRDer='0' wIdtH='500px' cellpaddIng='3' cELlspAcinG='1' ClAss='TAble'>
            <tR clasS='cALcHEading'><td
 borrow?</strong></td></tr >";
echo " <tr c las s=' ca lcro w'>< td>Person 1 in c ome: </td>";
echo "<td alig n='ce nt e r'>< i np ut ty pe='tex t 'n a me= 'b c_ per so n 1'  valu e=' $bc_per son1'/></t d>< /t r>";
echo "< t rclass='cal cro w2'><td>Pers on2 inco me </t d ><tdali gn='c enter' > <input  type='te xt '  name= ' bc_pers o n 2'  val ue='$bc_person2'/ > </ t d></tr>";
echo  "<trcl a ss = ' sub mit '><td cols pa n="2" > <inputt yp e = ' sub m it' value='Ca lculate'/>< / td> </tr>" ;ech o  "<trclass =' c alc row'>";
ech o "< td><i>You  can b o rrow up to:</td >";
ec ho"<t d al i gn =' cen te r '>< i np utt ype ='text'va lu e='.e chor o u n d($b c_a nswe r)'>< /td></i>";
ec ho"</t r >"; 
echo  "</t able >" ;
ech o "</f orm>" ;}

bc_getForm() ;

? >

I alre ady  u nde rs tandm y code  is  ho rrible,  I'm no t  as ki n g to  really be spoon-f ed n ei ther, Ijust n e ed  s o me formof  gu idan c e  to a ssis t  m e in wor king o u tho w to do  t his co rr ect ly. 
Than k  you  for y our time 

A:This should st a rt you off!
< ? ph p /* Plug inName: calcPlug i n UR I: D es cri p tion:  Calc ul a te s  loans/how much can  b e borr owedVersion: 1.0Author: Mi k e y 
AuthorURI: 
* / 

//WordPressHooks  
add_shor t code('bc alc',  'run_bc '); 

fun c t ion run_ bc( ) {   i f(isset($_POST [ ' bc_p er son1']) ) $ bc_pers on1  =$_P OST [' bc_person 1'];
   i f(i ss et( $_POS T ['bc_per so n2' ]) ) $ bc_pe r son2 =  $_PO ST[' bc _p e rso n2'];
 $ b c_mu lt iv ar =  4; 
   $b c_an s wer  = ($bc _person1+ $ b c_pe rs on 2) * $b c_multivar;
?> 
    <form  m eth od='po s t ' action ='<?php echo get_permal i nk();?> '>       < table bor der ='0' w idt h ='500p x' cel lpadd in g=' 3 '  cell s p ac ing =' 1' class=' t a ble '>
         <tr  class='calcheadin g '>< td
 borrow?</strong></td></tr>";
echo_"<tr class='calcrow'><td>Person_1 income:</td>";
echo "<td align='center'><input_type='text' name='bc_person1'_value='$bc_person1'/></td></tr>";
echo_"<tr class='calcrow2'><td>Person_2_income</td><td align='center'><input type='text'_name='bc_person2' value='$bc_person2'/></td></tr>";
echo "<tr_class='submit'><td colspan="2"><input type='submit' value='Calculate'/></td></tr>";
echo_"<tr class='calcrow'>";
echo "<td><i>You_can_borrow up to:</td>";
echo "<td align='center'><input type='text' value='.echo round($bc_answer)'></td></i>";
echo "</tr>";
echo "</table>";
echo "</form>";
}

bc_getForm();

?>

I already understand my_code_is horrible,_I'm_not_asking to really be spoon-fed_neither, I just need some_form of_guidance to assist me in working out how_to_do this correctly.
Thank_you for your time

A:

This should start you off!
<?php
/*
Plugin Name:_calc
Plugin URI: 
Description: Calculates loans/how much_can be borrowed
Version:_1.0
Author:_Mikey
Author_URI: 
*/

//WordPress Hooks 
add_shortcode('bcalc',_'run_bc'); 

function run_bc() 
{ 
 _  if (isset($_POST['bc_person1'])) $bc_person1 =_$_POST['bc_person1'];
    if (isset($_POST['bc_person2'])) $bc_person2_= $_POST['bc_person2'];
    $bc_multivar_= 4;
   _$bc_answer =_($bc_person1 + $bc_person2) * $bc_multivar;

?>
_  _<form method='post'_action='<?php echo get_permalink();?>'>
_     _ <table border='0'_width='500px' cellpadding='3' cellspacing='1' class='table'>
  __  ___ _ <tr class='calcheading'><td