sseeley Posted May 11, 2009 Share Posted May 11, 2009 Is there a way I can make x a variable in the following code? $POST1 = $_POST[postx]; I need to make x 1, 2, 3, 4 etc... Many thanks in advance for your help. Stuart Seeley Quote Link to comment https://forums.phpfreaks.com/topic/157719-solved-post-variable/ Share on other sites More sharing options...
jackpf Posted May 11, 2009 Share Posted May 11, 2009 $POST1 = $_POST['POST'.$x]; You mean like that? Quote Link to comment https://forums.phpfreaks.com/topic/157719-solved-post-variable/#findComment-831814 Share on other sites More sharing options...
Maq Posted May 11, 2009 Share Posted May 11, 2009 Did you also need to dynamically create the $POST1, variables as well? Quote Link to comment https://forums.phpfreaks.com/topic/157719-solved-post-variable/#findComment-831824 Share on other sites More sharing options...
jackpf Posted May 11, 2009 Share Posted May 11, 2009 I think I just glanced at another thread you posted about this... tut tut. But yeah, as (I think) Mchl said, you'd be better off using an array. Quote Link to comment https://forums.phpfreaks.com/topic/157719-solved-post-variable/#findComment-831828 Share on other sites More sharing options...
revraz Posted May 11, 2009 Share Posted May 11, 2009 You mean 3 posts like this.... Quote Link to comment https://forums.phpfreaks.com/topic/157719-solved-post-variable/#findComment-831833 Share on other sites More sharing options...
jackpf Posted May 11, 2009 Share Posted May 11, 2009 Ffs man. Lol...I'm sure Ken2k7 will be here any second to quote the TOS... Quote Link to comment https://forums.phpfreaks.com/topic/157719-solved-post-variable/#findComment-831838 Share on other sites More sharing options...
PFMaBiSmAd Posted May 11, 2009 Share Posted May 11, 2009 sseeley, this the third recent thread you have for this same problem. When you show that you don't return to and follow up with your existing threads, you loose the help you expect to receive. Quote Link to comment https://forums.phpfreaks.com/topic/157719-solved-post-variable/#findComment-831854 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.