joecooper Posted August 7, 2007 Share Posted August 7, 2007 $id = ($_GET['id']); $ifid = ($_GET['ifid']); $name = ($_GET['name']); $resolution = ($_GET['resolution']); $ext = ($_GET['ext']); $fullname = "$ifid_$name_$resolution.$ext"; when i echo $fullname, it doesnt display the idif, name, just the resolution and ext. i need it to give this format: 01253_silence_1680x1050.jpg Quote Link to comment https://forums.phpfreaks.com/topic/63795-putting-together-varibles/ Share on other sites More sharing options...
Hybride Posted August 7, 2007 Share Posted August 7, 2007 If you're trying to combine names, you have to use the "." (period). You had the end of $fullname correct. Just change it to this: $fullname = $ifid . '_' . $name . '_' . $resolution . '.' . $ext; and it should work. Quote Link to comment https://forums.phpfreaks.com/topic/63795-putting-together-varibles/#findComment-317909 Share on other sites More sharing options...
joecooper Posted August 7, 2007 Author Share Posted August 7, 2007 but i need the underscores between the idif, name and resolution, then a dot between resolution and ext, like this: 01253_silence_1680x1050.jpg Quote Link to comment https://forums.phpfreaks.com/topic/63795-putting-together-varibles/#findComment-317911 Share on other sites More sharing options...
Hybride Posted August 7, 2007 Share Posted August 7, 2007 Yeah, my bad, heh. I editted the previous post with the correct version. (I didn't catch it around the first time, sorry!) Quote Link to comment https://forums.phpfreaks.com/topic/63795-putting-together-varibles/#findComment-317912 Share on other sites More sharing options...
joecooper Posted August 7, 2007 Author Share Posted August 7, 2007 hehe, thanks mate! Quote Link to comment https://forums.phpfreaks.com/topic/63795-putting-together-varibles/#findComment-317914 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.