mzubair Posted November 7, 2005 Share Posted November 7, 2005 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 More sharing options...
vijay Posted November 9, 2005 Share Posted November 9, 2005 Hi,U can take one Array For Storing Name, And one For Path So From that With the help of <img src="">and TableU Can Do this easilyVijay Link to comment Share on other sites More sharing options...
Jack McKalling Posted November 11, 2005 Share Posted November 11, 2005 <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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now