Jump to content

Post Information


mzubair

Recommended Posts

Hi,I need an urgent help in my script.I am looking for a code for posting one picture and its name written under it to display to another page without using the database.I searched alot for this code but couldnt find any.Please anyone can help me to solve this problem.Thanks and regards,Zubair

Link to comment
Share on other sites

<form name="Picture" action="processform.php" method="post"><input type="text" name="filename" value="put in the file name"><br /><input type="text" name="filepath" value="put in the file path"><br /><input type="submit" value="Submit Your Input"></form>
<?php $FileName = $_POST['filename'];$FilePath = $_POST['filepath'];echo "<table>\n";echo "<tbody><tr><td>\n";echo "<img src='$FilePath'>\n";echo "</td></tr>\n<tr><td align='center'>\n";echo $FileName,"\n";echo "</td></tr>\n</tbody>\n";echo "</table>"; ?>
This may be what you're looking for :) Remember, the output of this php script is raw Html, not Xhtml valid, and it is not a complete document, it only echos the table :) Besides, this is only user-data, it is not stored only displayed.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...