I may be being dense here, but there is no sense in this post.
The first code is extremely difficult to read, because it has no indentation, like trying to read a book with no punctuation, and the 2nd 'script' is complete non-sense.
Is there a question here?
first change the code:
of your html and place the code below before your <HTML> opening
//if text box 1 only
//if text box 2 only
//if both has value
//if both none
in your html form tag. edit the form tag and replace into this
`<form action="<?php htmlspecialchars($_SERVER['PHP_SELF']);?>" method=post>
that way you will not loop back from one page back to the previous page because the page will load it self with the PHP loaded values already
for getting the value after an input has done and loops back as the form submits...
replace the text box tag to: <input type='textbox' name='box1' value='<?php echo $pass_text1;?>'>
and your text box 2 <input type='textbox' name='box2' value='<?php echo $pass_text2;?>'>
see what happens after you follow this carefully. If you like it please endorse me :)
Yes page 1 code was generated automatically , by placing a table on the work space and then adding text boxes to it and a submit button then I went to the source view and copy n pastted the code from there to here.
page 2 is me trying to code in Notepad with bits.
The idea i am trying to do is make simple lego type block of code that works so later on I can look back an take all the bricks and try to build a ie yellow bricks take text and moves it , blue bricks takes text and adds it to another, red bricks takes a pic. ect.