Ho creato un codice php che vorrei usarlo in una pagina html ma come?
questo e` il mio codice html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>
<body>
<form method="post">
<input name="Text1" style="width: 324px" type="text" value="www.repubblica.it" /><input name="Submit1" type="submit" value="Invia" /></form>
</p>
</body>
</html>
Vorrei che quando si clicca sul comando invia faccia partire la funzione che ho creato in php. Dove c`e` www.repubblica.it deve essere sostituito con la text1 che si trova nel file html. Penso che sia semplice per voi io nn ci riesco confido in un aiuto grazie...
<?php
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->FullScreen = true;
$browser->Navigate("http://www.repubblica.it");
/* Still working? */
while ($browser->Busy) {
com_message_pump(8000);
}
$im = imagegrabwindow($handle);
$browser->Quit();
imagepng($im, "iesnap.png");
?>
Come potrei fare? Mi potete postare un po di codice io nn ci sono riuscito grazie 1000![]()