How I do this. In HTML I have:
<TABLE>
<FORM ACTION="php-bin\login.php3" METHOD=POST name="FrmLog"'>
<TR>
<TD>Login Name: </TD>
<TD><INPUT TYPE='TEXT' NAME='InpName' maxlength="25"></TD>
</TR>
<TR>
<TD> <INPUT TYPE='SUBMIT' NAME= 'SubLog' VALUE='Press to submit'> </TD>
</TR>
</FORM>
</TABLE>
So, SUBMIT calls login.php3 and it transfers values of INPUTs to this script. In this php I have:
//InpName is the name of input in HTML file.
if (openDB('database name', 'db_user', 'password')){
$qwr_res = mysql_query ('INSERT INTO Users (UserName) VALUES (“.$InpName.”)');
}else{……. What you do if database is not opened………..}
As for concatenation, string are added by ‘.’ mark, for example:
$a=‘add this’.‘ to this’
means that
$a= ‘add this to this’.
I hope, that will help :-)