DeeDee2010 Posted March 6, 2009 Share Posted March 6, 2009 Ok so I need a name of a file to be called like this (SMITH-FR3242SDSMI.html) SMITH stands for the first name - $Lname FR3242SDSMI for the Transaction ID - $Tid How can I define this variable? Because it won't work with the "-" which unifies the two. Can somebody help? $file_name=$_POST["Lname-Tid"]; Thanks! :banghead: Link to comment https://forums.phpfreaks.com/topic/148304-solved-help-with-a-variable-cant-figure-it-out/ Share on other sites More sharing options...
pcw Posted March 6, 2009 Share Posted March 6, 2009 $file_name=$_POST['Lname'].$_POST['Tid']; Should work Link to comment https://forums.phpfreaks.com/topic/148304-solved-help-with-a-variable-cant-figure-it-out/#findComment-778606 Share on other sites More sharing options...
DeeDee2010 Posted March 6, 2009 Author Share Posted March 6, 2009 Thanks for the quick reply, but I need it with a "-"separating them. Now it gives me SMITHFR3242SMI.html and I want SMITH-FR3242SMI.html Can this be done? Thanks again! Link to comment https://forums.phpfreaks.com/topic/148304-solved-help-with-a-variable-cant-figure-it-out/#findComment-778609 Share on other sites More sharing options...
DeeDee2010 Posted March 6, 2009 Author Share Posted March 6, 2009 solved, thanks anyway. $file_name = "{$_POST['Lname']}-{$_POST['Tid']}"; Link to comment https://forums.phpfreaks.com/topic/148304-solved-help-with-a-variable-cant-figure-it-out/#findComment-778611 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.