Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copy all of the HTML Posted variables into an array
- $new_ps_file_info_array = $GLOBALS['HTTP_POST_VARS'];
- echo $new_ps_file_info_array;
- // Some characters are escaped with backslashes in HTML Posted variable
- // Cycle through each of the HTML Posted variables, and strip out the slashes
- foreach( $new_ps_file_info_array as $var_key => $var_val )
- {
- $new_ps_file_info_array[ $var_key ] = stripslashes( $var_val );
- }
- // Keywords should be an array - explode it on newline boundarys
- $new_ps_file_info_array[ 'keywords' ] = explode( "\n", trim( $new_ps_file_info_array[ 'keywords' ] ) );
- // Supplemental Categories should be an array - explode it on newline boundarys
- $new_ps_file_info_array[ 'supplementalcategories' ] = explode( "\n", trim( $new_ps_file_info_array[ 'supplementalcategories' ] ) );
Add Comment
Please, Sign In to add comment