Click here to Skip to main content

Linux, Apache, MySQL, PHP

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: Final Year project Pinmembercreespy2:56 21 Feb '12  
GeneralRe: Final Year project PinPopularmvpRichard MacCutchan5:17 21 Feb '12  
AnswerRe: Final Year project PinmemberJosephvObrien23:22 17 Apr '12  
Questioncoding Pinmembermannu4530:44 19 Feb '12  
QuestionRe: coding PinmemberEddy Vluggen5:42 19 Feb '12  
AnswerRe: coding Pinmembervenkatprince3:56 22 Feb '12  
Questionbutton and image on the same page php ?? Pinmembersujandasmahapatra22:14 15 Feb '12  
Frown | :( I want to create a button on a php pafe like a form now after pressing this button i should load an image. Now the I have done this. when the image is appearing it's on the other page than where the button was. I want to have the button on the same page. Left hand side i have a set of buttons and pressing each button should load image on the right side of the same page. I should be able to see the button and image both. Please help me how can I achieve this. Is it possible using only php. ?? Thanks for any help.
 
[code]
 
if(isset($_POST['submit']))
{
 
$imagepath="shirt7.jpg";
 
$image=imagecreatefromjpeg($imagepath);
 
header('Content-Type: image/jpeg');
 
imagejpeg($image);
 
}
?>
<form method="post" action="">
<input type="submit" name="submit" value="Submit Form">

</form>
[/code]
AnswerRe: button and image on the same page php ?? PinmemberGraham Breach0:03 16 Feb '12  
QuestionPHP mail() configuration PinmemberCodingLover18:31 13 Feb '12  
AnswerRe: PHP mail() configuration PinmvpRichard MacCutchan22:40 13 Feb '12  
GeneralRe: PHP mail() configuration PinmemberCodingLover23:13 13 Feb '12  
GeneralRe: PHP mail() configuration PinmvpRichard MacCutchan23:27 13 Feb '12  
GeneralRe: PHP mail() configuration PinmemberCodingLover23:30 13 Feb '12  
GeneralRe: PHP mail() configuration PinmvpRichard MacCutchan23:36 13 Feb '12  
GeneralRe: PHP mail() configuration PinmemberCodingLover23:43 13 Feb '12  
GeneralRe: PHP mail() configuration Pinmemberjiudingkeji14:06 14 Feb '12  
AnswerRe: PHP mail() configuration Pinmemberjohny1015198122:51 13 Feb '12  
GeneralRe: PHP mail() configuration PinmemberCodingLover23:18 13 Feb '12  
GeneralRe: PHP mail() configuration Pinmemberjohny1015198123:42 13 Feb '12  
Questionlearning perl PinmemberPhiri_code22:22 12 Feb '12  
AnswerRe: learning perl Pinmemberrickumali7:36 13 Feb '12  
GeneralRe: learning perl Pinsussjustinp4:10 14 Feb '12  
AnswerRe: learning perl Pinmemberdpminusa6:17 14 Feb '12  
AnswerRe: learning perl Pinsussthomas michaud3:28 17 Feb '12  
AnswerRe: learning perl Pinmemberjschell7:28 17 Feb '12  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Beta | 2.5.120517.1 | Last Updated 13 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid