Siliver2023 Posted August 13, 2008 Share Posted August 13, 2008 can anyone help me fix it? foreach($_POST as $key-->$value){ $query[] = "{$key}={$value}"; } $query_str = (count($query)) ? '&;'.join('&;',$query) : ''; $output = file_get_contents('http://aire.after5group.com/catalog/aire-course-catalog.php?sa=1'.$query_str.'&;rn='.rand()); print $output; ?>; I'm not sure exactly what I to kill this code but if someone could help me get it working again that wold be great. It's supossed to be a page within a page. Thank you! Link to comment https://forums.phpfreaks.com/topic/119423-solved-i-have-severly-butchered-this-piece-code/ Share on other sites More sharing options...
Guest Xanza Posted August 13, 2008 Share Posted August 13, 2008 Make sure it's in the right syntax first.. And if you lay it out properly it's more easy to view and edit. Link to comment https://forums.phpfreaks.com/topic/119423-solved-i-have-severly-butchered-this-piece-code/#findComment-615215 Share on other sites More sharing options...
Siliver2023 Posted August 13, 2008 Author Share Posted August 13, 2008 This is the way it came to me :-\ Link to comment https://forums.phpfreaks.com/topic/119423-solved-i-have-severly-butchered-this-piece-code/#findComment-615216 Share on other sites More sharing options...
pocobueno1388 Posted August 13, 2008 Share Posted August 13, 2008 Do you get an error? foreach($_POST as $key-->$value) Should be foreach($_POST as $key => $value) Link to comment https://forums.phpfreaks.com/topic/119423-solved-i-have-severly-butchered-this-piece-code/#findComment-615217 Share on other sites More sharing options...
Siliver2023 Posted August 13, 2008 Author Share Posted August 13, 2008 It doen't give an error the code just appears exposed in the browser like that. as if it were content. Link to comment https://forums.phpfreaks.com/topic/119423-solved-i-have-severly-butchered-this-piece-code/#findComment-615218 Share on other sites More sharing options...
Siliver2023 Posted August 13, 2008 Author Share Posted August 13, 2008 omg that fixed it thank thank thank you!!!!! Link to comment https://forums.phpfreaks.com/topic/119423-solved-i-have-severly-butchered-this-piece-code/#findComment-615221 Share on other sites More sharing options...
pocobueno1388 Posted August 13, 2008 Share Posted August 13, 2008 Please don't forget to press solved Link to comment https://forums.phpfreaks.com/topic/119423-solved-i-have-severly-butchered-this-piece-code/#findComment-615225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.