I have this php document called: pdf5.php
In that document I have these lines :
$pdf->setSourceFile('h.pdf');
I want to be able to edit these lines 'h.pdf' with a code or script.
The problem is that I would like to do it this way:
I have another php document called editpdf.php
with these inputs
<input type="text" value="h.pdf" /> <br>
<input type="text" value="" /> - Lets say the user puts: **f.pdf**
<input type="submit" name="submit" value="Modify" />
and when the user clicks Modify, the -h.pdf- from -pdf5.php- changes to -f.pdf-
like this: $pdf->setSourceFile('f.pdf');
I think I found something similar but it only edits the same page and it doesnt let a user modify it.
JavaScript replace()
<script type="text/javascript">
var str="Visit Microsoft!";
document.write(str.replace("Microsoft", "hello"));
so any ideas??? I dont know if I am making myself clear enough... ?? thnx in advanced..