Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a page with text and images, which I want to change (edit text, delete images) dynamically and transfer the page content to another php file via a variable.

My problem: When I delete text and images, the content shown in the php file is just the original content with all text and images. Seems like it gets reloaded during the transfer. How can I solve this, that the content is saved with the changes?

Here is how I get the url and how I give the variable to the other php file:

<?php 
global $wp;
$current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) );
// this will store the current page url in a variable (its from wordpress)
?>

The link to send the data:

<a href="http://example.com/create.php?pdf='.$current_url.'">Send</a>

And here the php file:

<?php
 $output = $_GET['pdf'];
 $showcontent = file_get_contents($output);
 echo $showcontent ;
 ?>
share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.