EMAIL

From: Date: Tue, 13 May 2003 09:12:20 +0000
Subject: EMAIL
Groups: php.general 
Request: Send a blank email to php-general+get-147406@lists.php.net to get a copy of this message
Dear all, I am, in my PHP script fcheck1.php writing to an HTML file. This HTML page has a hyperlink 'email' which should open up another form. I am attaching the code. What the code does is:it writes to the HTML file and posts the data to the next form which creates an html page of similar kind. what i want is: when the user clicks on the 'email link' a form should open which should be able to access the $wname value. but i don't know how can i post this data to the html form because in fcheck1.php i already have a submit button that posts this data to another form. please help. thanks a lot. regards, diksha. THE CODE "fcheck1.php" is as under: <?php //this will retrive the background and logo images. echo"<input type=\"hidden\" name=\"path\" value=\"$path\">"; echo"<input type=\"hidden\" name=\"pathlogo\" value=\"$pathlogo\">"; $fn = "$wname.html"; $fp = fopen ($fn, "w"); $string='<html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> <title>Address</title> <style type="text/css"> table { font-family:'; $string.=$ffamily; $string.='; font-style:'; $string.=$fstyle; $string.='} </style> </head> <body background="'.$path.'"> <table border="1" width="100%" height="430"> <tr>
    <td width="100%" colspan="2" height="61"><img src="'.$pathlogo.'" align=left height=60 width=75><center><font size=23><u>';
$string.=$wname; $string.='</u></font></center></td> </tr> <tr>
    <td width="24%" height="19"> </td>
    <td width="76%" height="19"><marquee behaviour=slide align="middle"> this site is made by businessdirectoryofindia.com</marquee></td>
</tr> <tr>
    <td width="24%" height="19"><a href="http://192.168.0.1/bdoi_change/';
    $string.=$wname;
    $string.='_page1.html">';
    $string.=$link1;
    $string.='</a></td>
    <td valign=top width="76%" height="324" rowspan="14"><br>';
$string.=$descriphome; $string.='</td> </tr> <tr>
    <td width="24%" height="19"><a href="http://192.168.0.1/bdoi_change/';
$string.=$wname; $string.='_page2.html">'; $string.=$link2; $string.='</a></td> </tr> <tr>
    <td width="24%" height="19"><a href="http://192.168.0.1/bdoi_change/';
$string.=$wname; $string.='_page3.html">'; $string.=$link3; $string.='</a></td> </tr> <tr>
    <td width="24%" height="19"><a href="http://192.168.0.1/bdoi_change/';
$string.=$wname; $string.='_page4.html">'; $string.=$link4; $string.='</a></td> </tr> <tr>
    <td width="24%" height="19"></td>
</tr> <tr>
    <td width="24%" height="19">
      <p align="center"><b>Address</b></td>
</tr> <tr>
    <td width="24%" height="76"><center>';
$string.=$badd1; $string.=','; $string.=$area; $string.='<br>'; $string.=$city; $string.='<br>'; $string.=$state; $string.='</center></td> </tr> <tr>
    <td width="24%" height="19"></td>
</tr> <tr>
    <td width="24%" height="19">
      <p align="center"><b>Telephone no.</b></td>
</tr> <tr>
    <td width="24%" height="19"><center>';
$string.=$btel; $string.='</center></td> </tr> <tr>
    <td width="24%" height="19"></td>
</tr> <tr>
    <td width="24%" height="19"><p align="center">
     <b>Fax</b></td>
</tr> <tr>
    <td width="24%" height="19"><center>';
$string.=$bfax; $string.='</center></td> </tr> <tr>
    <td width="24%" height="19"></td>
</tr> <tr>
    <td width="24%" height="19"><p align="center">
     <a href="http://192.168.0.1/bdoi_change/sendemail.php';
     $string.='">Email</a></td>
    <td width="76%" height="19"><center>
</a>
    </td>
</tr> </table> </body> </html>'; $contents=fputs($fp, $string); echo "'$contents'"; fclose($fp); ?> <html> <head> <title> </title> </head> </body> <?php echo"<form method=get action=\"2f.php\"> <input type=\"hidden\" name=path value=\"$path\"> <input type=\"hidden\" name=pathlogo value=\"$pathlogo\"> <input type=\"hidden\" name=login value=\"$login\"> <input type=\"hidden\" name=yname value=\"$yname\"> <input type=\"hidden\" name=cname value=\"$cname\"> <input type=\"hidden\" name=cat value=\"$cat\"> <input type=\"hidden\" name=pbus value=\"$pbus\"> <input type=\"hidden\" name=btel value=\"$btel\"> <input type=\"hidden\" name=bfax value=\"$bfax\"> <input type=\"hidden\" name=bemail value=\"$bemail\"> <input type=\"hidden\" name=badd1 value=\"$badd1\"> <input type=\"hidden\" name=area value=\"$area\"> <input type=\"hidden\" name=city value=\"$city\"> <input type=\"hidden\" name=state value=\"$state\"> <input type=\"hidden\" name=pin value=\"$pin\"> <input type=\"hidden\" name=wname value=\"$wname\"> <input type=\"hidden\" name=ffamily value=\"$ffamily\"> <input type=\"hidden\" name=fstyle value=\"$fstyle\"> <input type=\"hidden\" name=\"link2\" value=\"$link2\"> <input type=\"hidden\" name=\"link3\" value=\"$link3\"> <input type=\"hidden\" name=\"link4\" value=\"$link4\"> <textarea name=\"descriphome\" value=\"hidden\" rows=5 cols=60>$descriphome</textarea> <pre> <h2>Create first page</h2> First link name: <input type=\"text\" name=\"link1\" value=\"$link1\"> <br> Enter the description of the first page: <textarea name=descrip1 rows=5 cols=60 >$descrip1</textarea> <br> <input type=\"submit\" value=\"submit\"> </form>"; ?> </body> </html> ___________________________________________________ Get email that means BUSINESS! me @ mycompany.com. Just Rs.1499/year. To start, click http://www.rediffmailpro.com

« previous php.general (#147406) next »