<?php// example signup2.php// place in ListMail folder and point all signup forms to itinclude('./config.php');include('./admin.php');// dont allow if on this list$back_list = 1;list($test)=@mysql_fetch_row(mysql_query("select id from lm_users where list = '$back_list' and email like '".addslashes($email)."';"));if($test){ echo "Sorry you may not subscribe...<br>"; exit;}// build vars $vars=array(); foreach($_POST as $k=>$v){ $vars[]=$k.'='.urlencode($v); } // forward to signup.phplist($lmp)=@mysql_fetch_row(mysql_query("select listmailpath from lm_config"));header('Location: '.$lmp.'signup.php?'.implode('&',$vars));?>
// build vars $vars=array(); while(list($k,$v)=each($_POST)){ $vars[]=$k.'='.urlencode($v); }
// build vars $vars=array(); foreach($_POST as $k=>$v){ $vars[]=$k.'='.urlencode($v); }
<removed>Warning: Cannot modify header information - headers already sent by (output started at /home/xxx/public_html/xxx/signup2.php:17) in /home/xxx/public_html/xxx/signup2.php on line 29