PHP Analysis Post Duplicate value
Client HTML
<form action= "new.php" method= "POST" >
<input name= "part" type= "text"/>
<input name= "Transysno" type= "text"/>
<input name= "Tranlineid" type= "text"/>
<input name= "Count" type= "text"/>
<input name= "part" type= "text"/>
<input name= "Transysno" type= "text"/>
<input name= "Tranlineid" type= "text"/>
<input name= "Count" type= "text"/>
<input type= "Submit" name= "POST" value= "submitted"/>
</form>
How
Determines whether two groups of part,transysno,tranlineid are identical on the PHP server, and if the same is the same count and
------solution--------------------
submit print_r ($_post); know what to do
------solution--------------------
client HTML
<form action= "news.php" method= "POST"
<input name= "part[]" type= "text" &NBSP;/>
<input name= "transysno[]" type= "text" />
<input name= "tranlineid[]" Type= "text" />
<input name= "count[]" Type= "text" />
<input name= "part[]" type= "text" />
<input name= "transysno[]" type= "text" &NBSP;/>
<input name= "tranlineid[]" type= "text" &NBSP;/>
<input name= "count[]" type= "text" &NBSP;/>
<input type= "Submit" name= "POST" value= "submitted" &NBSP;/>
</form>
news.php
if ($_post[' part '][0]==$_post[' part '][1] && $_post[' transysno '][0]==$_post[' Transysno ']
[1] && $_post[' Tranlineid '][0]==$_post[' Tranlineid '][1]) {
Echo ($_post[' count '][0] + $_post[' count '][1]);
}else{
Echo ' Part,transysno,tranlineid not match ';
}