Jump to content

Help with php form images post


9009032

Recommended Posts

I am in the middle of making a complex form but i am having trouble with image url posting. This is my html form code:<TEXTAREA NAME="Picture1" ROWS=1 COLS=15></TEXTAREA>Here is my php code<img src="<?php echo $_POST["picture1"]; ?>" alt="" />So i am trying to have the user input the url of an image and then it will put that url into <img src so it will show up. I am not sure why this isnt working help please!

Link to comment
Share on other sites

Hi.. It'll definitely work if form submits and given url exist with image.. ammend this line: <img src="<?php echo $_POST["Picture1"]; ?>" alt="" />Regards,Vijay

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...