header()
Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\regist.php:30)
in C:\Program Files\xampp\htdocs\regist.php on line 48
というエラー。
対処方法:
<?php session_start(); 略 //print("email:".$_SESSION['reg']['email']); $ID=substr($_SESSION['reg']['email'] ,0,-16); //print("登録するID:".$ID); 略 header('Location: thanks.php'); exit(); ?>
という感じで、やればエラーがでない。
print("email:".$_SESSION['reg']['email']);がやばいらしい。