<?php
$str = '<FORM action=http://order.store.yahoo.com/cgi-bin/wg-order?ihealthtree+cnpyr
method=post>';
$my = '<input type=hidden name=sd value=df>';
$act = "http://my.com";
echo preg_replace("/<FORM\s+action=(.*)\s+method=post>/isU", "<FORM action=".$act." method=post>".$my, $str);
?>
$str = '<FORM action=http://order.store.yahoo.com/cgi-bin/wg-order?ihealthtree+cnpyr
method=post>';
$my = '<input type=hidden name=sd value=df>';
$act = "http://my.com";
echo preg_replace("/<FORM\s+action=(.*)\s+method=post>/isU", "<FORM action=".$act." method=post>".$my, $str);
?>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货