ok heres what i want to do.
I want to Have a form where the user puts in a link to an image and they click submit and on the page it shows the image. This does have a purpose for me .
Current Code
image.html
<html>
<body>
<body>
<html>
<body bgcolor=”gray” text=”maroon”>
<form action=”image.php” method=”POST”>
<table cellspacing=”4″ cellpadding=”2″ border=”2″>
<tr>
<tr><td width=”100%”>Image URL:</td><td width=”100%”> <input type=”text” name=”image”/><br></td></tr>
<tr><td width=”100%”><input type=”submit” /></td></tr></table>
</form></body>
</html>
</form>
</html>
[hr]
image.php
</body>
<?
echo
“<html>”
.”<body>”
.”<body bgcolor=’gray’ text=’maroon’>”
.”<title>IGN Image Maker</title>n”
.”<img src=””.$_POST[‘image’].” style=”margin-left: 20px;”>n”
.”</body>”
.”</html>”
?>
[hr]
Im currenty receiving this error
Parse error: parse error, expecting `‘,” or
[i]Originally posted by RefreshF5 [/i]
[B]ok heres what i want to do.
I want to Have a form where the user puts in a link to an image and they click submit and on the page it shows the image. This does have a purpose for me .
Current Code
image.html
<html>
<body>
<body>
<html>
<body bgcolor="gray" text="maroon">
<form action="image.php" method="POST">
<table cellspacing="4" cellpadding="2" border="2">
<tr>
<tr><td width="100%">Image URL:</td><td width="100%"> <input type="text" name="image"/><br></td></tr>
<tr><td width="100%"><input type="submit" /></td></tr></table>
</form></body>
</html>
</form>
</html>
[hr]
image.php
</body>
<?
echo
"<html>"
."<body>"
."<body bgcolor='gray' text='maroon'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['image']." style="margin-left: 20px;">n"
."</body>"
."</html>"
?>
[hr]
Im currenty receiving this error
Parse error: parse error, expecting';'' in /home/benson1/public_html/nucleus/image.php on line 7 [/B][/QUOTE] ','' or
[code=php]."<img src="".$_POST['image']."" style="margin-left: 20px;">n";[/code]
[code=php]<?php
echo
"<html>"
."<body>"
."<body bgcolor='gray' text='maroon'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>";
?>[/code]
[i]Originally posted by RefreshF5 [/i]
[B]Parse error: parse error in /home/benson1/public_html/nucleus/icontester.php on line 8
<?
echo
"<html>"
."<body>"
."<body bgcolor='gray' text='maroon'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n";
."</body>"
."</html>"
?>
[hr]
the body line [confused] whats wroing wtih that? [/B][/QUOTE]
[code=php]
<?
echo
"<html>"
."<body>"
."<body bgcolor='gray' text='maroon'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n";
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[i]Originally posted by RefreshF5 [/i]
[B]Parse error: parse error in /home/benson1/public_html/nucleus/icontester.php on line 8
<?
echo
"<html>"
."<body>"
."<body bgcolor='gray' text='maroon'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n";
."</body>"
."</html>"
?>
[hr]
the body line [confused] whats wroing wtih that? [/B][/QUOTE]
[code=php]
<?
echo
"<html>"
."<body>"
."<body bgcolor='gray' text='maroon'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[i]Originally posted by RefreshF5 [/i]
[B]<?
echo
"<html>"
."<body>"
."<body bgcolor='gray' text='maroon'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n";
."</body>";
."</html>"; // <-- I included a ;.
?>
^^ current code
http://nucleus.ih0p.com/icontester.html
^^site its hoested at
im still getting the same error on line 8 [/B][/QUOTE]
[i]Originally posted by pyro [/i]
[B]Already said that:http://forums.webdeveloper.com/showthread.php?s=&postid=119630#post119629 [/B][/QUOTE]
[code=php]
<?
echo
"<html>"
<head>
<style>
body {background-repeat: no-repeat;}
</style>
</head>
."<body>"
."<body background='iconthing.gif'>"
."<title>IGN Image Maker</title>n"
<br>
<br>
<br>
<br>
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[code=php]
<html>
<head>
<style>
body {background-repeat: no-repeat;}
</style>
</head>
<body>
<body background='iconthing.gif'>
<title>IGN Image Maker</title>
<br>
<br>
<br>
<br>
<img src="<? print "$_POST['icon']"; ?>" style="margin-left: 20px;">
</body>
</html>
[/code]
[i]Originally posted by Kyleva2204 [/i]
[B]I know but he must not of gotten the message :- i dunno. [/B][/QUOTE]
T_STRING' or
[i]Originally posted by RefreshF5 [/i]
[B]Parse error: parse error, expectingT_VARIABLE' or `T_NUM_STRING' in /home/benson1/public_html/nucleus/icontester.php on line 14 T_STRING' or
i tried that and got this^^^ [/B][/QUOTE]
[code=php]
<?php
print "
<html>
<head>
<style>
body {background-repeat: no-repeat;}
</style>
</head>
<body>
<body background='iconthing.gif'>
<title>IGN Image Maker</title>
<br>
<br>
<br>
<br>
<img src="$_POST['icon']" style="margin-left: 20px;">
</body>
</html>
";
?>
[/code]
[code=php]
<?
echo
"<html>"
."<head>"
."<style>"
."body {background-repeat: no-repeat;} "
."</style>"
."</head>"
."<body>"
."<body background='iconthing.gif'>"
."<title>IGN Image Maker</title>n"
."<br>"
."<br>"
."<br>"
."<br>"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>";
?>
[/code]
T_STRING' or
[i]Originally posted by RefreshF5 [/i]
[B]Parse error: parse error, expectingT_VARIABLE' or `T_NUM_STRING' in /home/benson1/public_html/nucleus/icontester.php on line 16 T_STRING' or
basically the same error this time cept on line 16. I had the picture posting with my background before. but the bg image kept posting which i didnt want and i wanted 4 spaces before the image was posted.
http://nucleus.ih0p.com/testing123.html
^^that is my desired look [/B][/QUOTE]
[code=php]
<?
echo
"<html>"
."<body>"
."<body background='iconthing.gif'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[i]Originally posted by RefreshF5 [/i]
[B]im not sure what you mean that picture abouve was done in photoshop
http://nucleus.ih0p.com/icontester.php
^^thats as far as i can get.
i need the picture down 4 spaces and the bg to not double
[code=php]
<?
echo
"<html>"
."<body>"
."<body background='iconthing.gif'>"
."<title>IGN Image Maker</title>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
^^^thats the script i used for that. [/B][/QUOTE]
[code=php]
<?
echo
"<html>"
."<body>"
."<body background='iconthing.gif'>"
."<title>IGN Image Maker</title>n"
."<br>n"
."<br>n"
."<br>n"
."<br>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[code=php]
<?
echo
"<html>"
."<body>"
."<body style="background: iconthing.gif; background-repeat: no-repeat">"
."<title>IGN Image Maker</title>n"
."<br>n"
."<br>n"
."<br>n"
."<br>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[i]Originally posted by RefreshF5 [/i]
[B]http://nucleus.ih0p.com/icontester.html
that causes the bg to not appear at all [/B][/QUOTE]
[code=php]
<?
echo
"<html>"
."<body>"
."<body style="background-repeat: no-repeat; background-image: iconthing.gif">"
."<title>IGN Image Maker</title>n"
."<br>n"
."<br>n"
."<br>n"
."<br>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[code=php]
<?
echo
"<html>"
."<head>"
."<title>IGN Image Maker</title>n"
."</head>"
."<body style="background: url('http://nucleus.ih0p.com/iconthing2.gif'); background-repeat: no-repeat">"
."<br>n"
."<br>n"
."<br>n"
."<br>n"
."<img src="".$_POST['icon']."" style="margin-left: 20px;">n"
."</body>"
."</html>"; // <-- I included a ;.
?>
[/code]
[code=php]<html>
<head>
<title>IGN Image Maker</title>
</head>
<body style="background: url('http://nucleus.ih0p.com/iconthing2.gif'); background-repeat: no-repeat">
<br>
<br>
<br>
<br>
<img src="<?PHP echo $_POST['icon']; ?>" style="margin-left: 20px;">
</body>
</html>[/code]
That will be quite a bit closer. Just start using valid HTML and it will be even better.[i]Originally posted by pyro [/i]
[B]No need to be echoing out all that HTML. You guys were on the right path earlier, but gave it up:
[code=php]<html>
That will be quite a bit closer. Just start using valid HTML and it will be even better. [/B][/QUOTE]
<head>
<title>IGN Image Maker</title>
</head>
<body style="background: url('http://nucleus.ih0p.com/iconthing2.gif'); background-repeat: no-repeat">
<br>
<br>
<br>
<br>
<img src="<?PHP echo $_POST['icon']; ?>" style="margin-left: 20px;">
</body>
</html>[/code]
0.1.9 — BETA 5.18