I have a iframe with a name, in this case an email address that changes from users.
I need to deal with this var:
<iframe name="asd@asd.lol" src="index.html">
index.html is a simple data form like this:
<form ENCTYPE="multipart/form-data" action="upload.php" method="POST">
<p>Upload: <input type="file" name="file1"> <br /></p>
<input type="submit" value="Upload">
</form>
I need to pass the value “asd@asd.lol” to the “upload.php” file.
Is this possible?
Is it possible for you to add a querystring parameter into the index.html file?
So:
Then in the index.html file set a hidden variable:
If this is a plain HTML file you could set the value of the hidden field with some javascript.
Then use $_POST[“email”] to get the email value out of the hidden field.