Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2. // Copy all of the HTML Posted variables into an array
  3. $new_ps_file_info_array = $GLOBALS['HTTP_POST_VARS'];
  4. echo $new_ps_file_info_array;
  5. // Some characters are escaped with backslashes in HTML Posted variable
  6. // Cycle through each of the HTML Posted variables, and strip out the slashes
  7. foreach( $new_ps_file_info_array as $var_key => $var_val )
  8. {
  9. $new_ps_file_info_array[ $var_key ] = stripslashes( $var_val );
  10. }
  11.  
  12. // Keywords should be an array - explode it on newline boundarys
  13. $new_ps_file_info_array[ 'keywords' ] = explode( "\n", trim( $new_ps_file_info_array[ 'keywords' ] ) );
  14.  
  15. // Supplemental Categories should be an array - explode it on newline boundarys
  16. $new_ps_file_info_array[ 'supplementalcategories' ] = explode( "\n", trim( $new_ps_file_info_array[ 'supplementalcategories' ] ) );
Add Comment
Please, Sign In to add comment