elgordo1960 Posted October 1, 2007 Share Posted October 1, 2007 Hi I have just created a formail.php but it opens full page, I would like it to open in a new window but much smaller. here is the url: http://www.deborahpollington.com/ini/contactform.php Thanks, Gordon. Quote Link to comment https://forums.phpfreaks.com/topic/71363-form-mail-php-how-to-change-how-it-opens-in-browser/ Share on other sites More sharing options...
trq Posted October 1, 2007 Share Posted October 1, 2007 We need to see code. Quote Link to comment https://forums.phpfreaks.com/topic/71363-form-mail-php-how-to-change-how-it-opens-in-browser/#findComment-359086 Share on other sites More sharing options...
jaymc Posted October 1, 2007 Share Posted October 1, 2007 You will need to use javascript Make/get some popup code and force the form to submit to it hence opening in a small window Quote Link to comment https://forums.phpfreaks.com/topic/71363-form-mail-php-how-to-change-how-it-opens-in-browser/#findComment-359088 Share on other sites More sharing options...
d.shankar Posted October 1, 2007 Share Posted October 1, 2007 Use this <a href="window.open('http://www.deborahpollington.com/ini/contactform.php', 'contactfrm','location=1,status=1,scrollbars=1, width=100,height=100'); >Click Here</a> Quote Link to comment https://forums.phpfreaks.com/topic/71363-form-mail-php-how-to-change-how-it-opens-in-browser/#findComment-359094 Share on other sites More sharing options...
elgordo1960 Posted October 1, 2007 Author Share Posted October 1, 2007 Use this <a href="window.open('http://www.deborahpollington.com/ini/contactform.php', 'contactfrm','location=1,status=1,scrollbars=1, width=100,height=100'); >Click Here</a> Thanks for the reply, can you tell me where to insert the code please? here is the code: <?php include_once( "20071001-6248.lib.php" ); ?> <html> <head> <title>PHP FormMail Generator - A tool to create ready-to-use web forms in a flash | Demo Template</title> <!-- <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"> --> <meta name="keywords" content="PHP FormMail Generator, phpFormMailGen, Customize Forms, phpFormMailGenerator,formmail.php, formmail.pl, formMail Generator, PHP, Generator, Backend Tool, phpFormGen, phpFormGenerator, anti-spam, web hosting"> <meta name="description" content="PHP formMail Generator - A tool to ceate ready-to-use web forms in a flash"> <style type='text/css'> .form_title{ color : #000000; font-size: 13px; font-family: verdana, Geneva, Arial, Helvetica, sans-serif; font-weight : bold; } .form_field { font-size : 13px; font-family : Verdana, Arial, Helvetica, sans-serif; color : #474747; font-weight : bold; text-align:left; } .form_text{ font-size : 11px; font-family : Verdana, Arial, Helvetica, sans-serif; color : #000000; } .text_box{ font-size : 11px; font-family : Verdana, Arial, Helvetica, sans-serif; color : #000000; width:200px; } .text_area{ font-size : 11px; font-family : Verdana, Arial, Helvetica, sans-serif; color : #000000; width:200px; height:60px; } .text_select{ font-size : 11px; font-family : Verdana, Arial, Helvetica, sans-serif; color : #000000; } .form_error{ font-size : 11px; font-family : Verdana, Arial, Helvetica, sans-serif; color : #ff0000; font-weight : bold; } .copyright{ font-size : 11px; font-family : Verdana, Arial, Helvetica, sans-serif; color : #000000; } .style1 {color: #006600} .style2 {font-size: 13px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #006600; font-weight: bold; text-align: left; } </style> </head> <body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0"> <meta http-equiv="content-type" content="text/html; charset="> <!-- ------------------------ Begin: Your FormMail's Description ------------------------ --> <br><br><br> <table width="100%" border='0' align='center' cellpadding='0' cellspacing='16' ><!--DWLayoutTable--><tr><td width="100%"> <font class='form_title style1'>Contact Deborah</font> </td> </tr></table> <!-- ------------------------ End: Your FormMail's Description ------------------------ --> <!-- ======================= Begin: Form Generated By PHP FormMail Generator ======================= --> <?php if( !$isHideForm ): global $sErr ; if( $sErr ) print "<br><a name='error'></a><center><font class='form_error' >$sErr</font></center><br>"; $starColor = $sErr ? "#ff0000" : "#000000"; $style=" class='form_text' "; ?> <form name="frmFormMail" action="<?php print PHP_SELF ?>" method='post' enctype='multipart/form-data'> <input type='hidden' name='formmail_submit' value='Y'> <input type='hidden' name='esh_formmail_recipient' value="deborah@deborahpollington.com"> <input type='hidden' name='esh_formmail_subject' value="Photos"> <input type='hidden' name='esh_formmail_cc' value=""> <input type='hidden' name='esh_formmail_bcc' value=""> <input type='hidden' name='esh_formmail_return_subject' value=""> <input type='hidden' name='esh_formmail_return_msg' value=""> <input type='hidden' name='esh_formmail_mail_and_file' value=""> <input type='hidden' name='esh_formmail_charset' value=""> <table border='0' cellpadding='0' cellspacing='16' bgcolor="#CCF4C1" > <tr> <td align='right' valign='top' class="style2">Your email address </td> <td width='10' aligh='right' valign='top'></td> <td class="form_text"> <input type="sender's email" name="Your_email_address" value="<?php print HtmlSpecialChars( $HTTP_POST_VARS[ "Your_email_address" ] ); ?>" class='text_box'> </td> </tr> <tr> <td align='right' valign='top' class="style2">Your Message Here </td> <td width='10' aligh='right' valign='top'></td> <td class="form_text"> <textarea name="Your_Message_Here" rows=4 cols=25 ><?php print HtmlSpecialChars( $HTTP_POST_VARS[ "Your_Message_Here" ] ); ?></textarea> </td> </tr> <tr><td colspan=3 align='center'><input type='submit' value='Submit'> <input type='button' value='Cancel' onClick="location.href='/';"></td></tr> </table> </form> <!-- ======================= End: ======================= --> <?php if( $sErr ) print "<script language='javascript' type='text/javascript'>location.href='#error';</script>";;; else: //!$isHideForm print( "<br><br><hr><center><b>Your email has been sent. Thank you.</b><br><br><input type='button' value='Home' onclick=\"location.href='/';\"></center><br><br>" ); endif; //!$isHideForm ?> <!-- -------------------------------------- COPY RIGHT -------------------------------------- --> <br><br> <br> <br><br> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/71363-form-mail-php-how-to-change-how-it-opens-in-browser/#findComment-359258 Share on other sites More sharing options...
BlueSkyIS Posted October 1, 2007 Share Posted October 1, 2007 It's just an HTML link. Put it on whatever page you want to display the "Click Here" link to open formail.php. Quote Link to comment https://forums.phpfreaks.com/topic/71363-form-mail-php-how-to-change-how-it-opens-in-browser/#findComment-359275 Share on other sites More sharing options...
d.shankar Posted October 1, 2007 Share Posted October 1, 2007 Put it in your source code of your home page http://www.deborahpollington.com Quote Link to comment https://forums.phpfreaks.com/topic/71363-form-mail-php-how-to-change-how-it-opens-in-browser/#findComment-359280 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.