Nov 7, 2006 #1 james0816 Programmer Jan 9, 2003 295 US when using the refresh....is it possible to pass a variable in the url that you are passing? I.e. $a1='test'; header('Refresh: 5; URL=test2.php?var1=$a1'); i get to the next page but the var1 is empty.
when using the refresh....is it possible to pass a variable in the url that you are passing? I.e. $a1='test'; header('Refresh: 5; URL=test2.php?var1=$a1'); i get to the next page but the var1 is empty.
Nov 7, 2006 #2 sleipnir214 Programmer May 6, 2002 15,350 US It may be your use of quotes. In this line: header('Refresh: 5; URL=test2.php?var1=$a1'); You use a variable reference inside singlequotes. But variables are not interpolated inside singlequotes. Want the best answers? Ask the best questions! TANSTAAFL! Upvote 0 Downvote
It may be your use of quotes. In this line: header('Refresh: 5; URL=test2.php?var1=$a1'); You use a variable reference inside singlequotes. But variables are not interpolated inside singlequotes. Want the best answers? Ask the best questions! TANSTAAFL!
Nov 7, 2006 Thread starter #3 james0816 Programmer Jan 9, 2003 295 US got it.... header('Refresh: 5; URL=test2.php?va1='.$a1); Upvote 0 Downvote