Jump to content

vikaspa

Members
  • Posts

    74
  • Joined

  • Last visited

Everything posted by vikaspa

  1. I am using following fucntion to get proportionate width for user specific height However I noticed that in case image name is having space it gives an error Example Function works ok for image name say "pict1.jpg" However gives error for pict 1.jpg (space in name beforer 1) list($width, $height, $type, $attr) = getimagesize(addslashes($imagename)); if ($width ==0) {$imgstr="No Image"; } else { $h=$height*($reqwidth/$width) ; if ($width > $reqwidth) { $imgstr="<img src='".addslashes($imagename)."' width=".$reqwidth." height=".$h." border=0 >";} else { $imgstr="<img src='".addslashes($imagename)."' width=".$width." height=".$height." border=0 >";} } return $imgstr; }
  2. Dear All Browser do have facilityto BLOCK pop up In an CMS npnonline.biz I am using POP up If pop up is blocked, the pop up window cannot be seen immediately (user has choice to not to see that) How can display a new window like pop up window so that it wont be blibked I am using PHP, Java Script , My SQL Please help This can be user ful for many programmers
  3. Dear All I found this forum most beneficial and effective The slide show fiunction is in 2 parts following part is embeded in header <script language="JavaScript1.1"> <!-- /* JavaScript Image slideshow: By JavaScript Kit (www.javascriptkit.com) Over 200+ free JavaScript here! */ var slideimages=new Array() var slidelinks=new Array() function slideshowimages(){ for (i=0;i<slideshowimages.arguments.length;i++){ slideimages=new Image() slideimages.src=slideshowimages.arguments } } function slideshowlinks(){ for (i=0;i<slideshowlinks.arguments.length;i++) slidelinks=slideshowlinks.arguments } function gotoshow(){ if (!window.winslide||winslide.closed) winslide=window.open(slidelinks[whichlink]) else winslide.location=slidelinks[whichlink] winslide.focus() } //--> </script> The other part of javascript where the slide show happens is also given below <td width="35%" height="210" valign="top"> <?php if ($snimg[0]!='') { ?> <a href="javascript:gotoshow()"> <img src="<?php echo $snimg[0]; ?>" name="slide" border=0 width=200 height=200 vspace="5"></a> <?php } ?> <script> <!-- //configure the paths of the images, plus corresponding target links slideshowimages("<?php echo $snimg[0]; ?>","<?php echo $snimg[1]; ?>","<?php echo $snimg[2]; ?>","<?php echo $snimg[3]; ?>","<?php echo $snimg[0]; ?>") slideshowlinks("<?php echo $snlink[0]; ?>","<?php echo $snlink[1]; ?>","<?php echo $snlink[2]; ?>","<?php echo $snlink[3]; ?>","<?php echo $snlink[0] ; ?>") //slideshowlinks("<?php echo $snlink[0]; ?>","<?php echo $snlink[1]; ?>","<?php echo $snlink[2]; ?>","<?php echo $snlink[3]; ?>","<?php echo $snlink[0]; ?>") //configure the speed of the slideshow, in miliseconds var slideshowspeed=4000 var whichlink=0 var whichimage=0 function slideit(){ if (!document.images) return document.images.slide.src=slideimages[whichimage].src whichlink=whichimage if (whichimage<slideimages.length-1) whichimage++ else whichimage=0 setTimeout("slideit()",slideshowspeed) } slideit() //--> </script> Now the problem .. if the link is not given a blank page is opened up how to avoid opening of blank page
  4. DEar All I want to restrict user to upload image files before upload is this possible using java script / PHP ? Example : if user tries to upload a file of size more than 300KB he should be warned Please help Please Help
  5. Dear All lifegoeson.in is trhe web site I am developing. For page details (displayed in centre of web site, ) I had provided fckeditor. I found the search using SQL is not made on text entered (and then stored in database) using fck editor. whats the way out ? I want to make search on these details Please , please help
  6. Dear Sir I have developed an content managemeny software for user to generate / store information in database this ingotmation is displayed .. refer ligegoes.in the inftormation text is added / edited using fckeditor this information is displayed as web apge this being web site for senior citizens fir better readbility, a provision (javascript) is needed so that font site of information displayed can be increased / decreased i found that in case information is entered / updated fckeditor , i cannot control the font size i hope this clarifies the problem feel free to ask doubt if any
  7. Dear Sir What you say is true above code is generated when a database record is read for fields other than radio buttons the are identified individually In case of radio button if i cleck on radiob button for 1st record and later on other record the 1st record selection (check) is removed I want each pair of radio button to be distinctly identified or for each row the name should be fifferent Please help
  8. Followinf code defines array of strings like uoom[] , qty[] , price[] However when i define cnfexmill[], as array is not defines ..please help me where I had gone wrong <table width="100%" border="0" cellspacing="1" cellpadding="0"> <tr> <td width="9%" rowspan="2"><div align="center"><img src="<?php echo $ipth; ?>" width="25" height="25" /></div></td> <td width="14%" height="20"> <label></label> <div align="center"><span class="bodytextbold">Price per</span></div></td> <td width="24%"><div align="center"><strong>C&F or Ex Mill </strong></div></td> <td width="17%"><div align="center"><span class="bodytextbold">Currency :</span></div></td> <td width="14%"><div align="center"><span class="bodytextbold">Qty</span></div></td> <td width="22%" rowspan="2"><? if($allowcustsearch==1) { ?> √<a href="javascript:openNewWindow('product_quote_history.php?pid=<?php echo $rows2['pid']; ?>','win3');">Previous Quotes </a> <? } ?></td> </tr> <tr> <td><div align="center"> <input name="uom[]" type="text" id="uom[]" value="<?php echo $rows2['uom']; ?>" size="8" /> </div></td> <td><label> <div align="center"> <input name="cnfexmill[]" type="radio" id="cnfexmill[]" value="<?php echo $rows2['cnfexmill']; ?>" /> C&F <input name="cnfexmill[]" type="radio" id="cnfexmill[]" value="<?php echo $rows2['cnfexmill']; ?>" /> Exmill Floor </div> </label></td> <td><div align="center"> <input name="currency[]" type="text" id="currency[]" value="<?php echo $rows2['currency']; ?>" size="6" /> </div></td> <td><div align="center"><span class="bodytextbold"> </span> <?php if ($rows2['qty']=="") { $rows2['qty']=0; // echo $rows2['qty']; } ?> <input name="qty[]" type="text" id="qty[]" value="<?php echo $rows2['qty']; ?>" size="6" /> </div></td> </tr> </table>
  9. I am displaying details stored in database as follow <textarea name="bizdesc" cols="50" rows="5" class="input" id="bizdesc"><?php echo $rows['bizdesc'] ; ?></textarea> The details are entered as text 1 text 2 text 3 But displayed as text 1 text2 text3 How can I display this in original format i.e. one below the other i.e. text 1 text 2 text 3 PLEASE PEASE HELP
  10. Dear Please help me I am inserting a records in a table I want to know the id for the row inserted which is auto generated How can i get it Please please help
  11. Dear All We want to forward spme details header + product details recorded for a customer as it is to other customer The id or key is auto generated is there any simple commanbd to do this like insert into table1 ( select * from table1 where id=1234)
  12. I had made provision to upload file in jpg, excel, pdf or word format The file is uploaded on server. It was assumed that the file uploaded will be in jpg format and I can display the file in jpg, png, gif format So to display file in pdf, word or excel Now i need to check the file format and display it according (as per file format ) Please please help me to display the uploaded file in different format I will be really greatful .... Thanks in advance
  13. I am using following scipt for javascript slide show. I want to replace the image names with the one I read using PHP+MYSQL database (conditional SQL statement ) Please help help help me to use image names stored in PHP variable names Thanks in advance <script> <!-- //configure the paths of the images, plus corresponding target links slideshowimages("img1.gif", "img2.gif", "img3.gif") slideshowlinks("http://wsabstract.com", "http://dynamicdrive.com", "http://java-scripts.net") //configure the speed of the slideshow, in miliseconds var slideshowspeed=2000 var whichlink=0 var whichimage=0 function slideit(){ if (!document.images) return document.images.slide.src=slideimages[whichimage].src whichlink=whichimage if (whichimage<slideimages.length-1) whichimage++ else whichimage=0 setTimeout("slideit()",slideshowspeed) } slideit() //--> </script>
  14. we are developing a web based software,. Some iformation (say cost of machine is generated usinq PC based Software) I need to connect to this PC based software and send certain parameters and avil the cost computed by this PC based program OR Otherway around The PC based progaram to read details required from web based program and transfer the rates which will used for futher calculation by web based program Is thsi possible .. If so how to do this ...
  15. I am using following script to sroll images one by one and when user click on the images, needful is done. It working fine .. My problem is when net speed is slow(in India it is slow) , it takes time to load images and nothing is visible...can I show something like " Loading images ...please wait .." like we do in flash .... or is there any other way ... putting BG with text " Loading images ...please wait .." but it seems slidebgcolor="" overrides this ...please help <td height="93" colspan="5" rowspan="2" background="images/index_12.jpg" bgcolor="#3E7CB5"><script type="text/javascript"> //Specify the slider's width (in pixels) var sliderwidth="688px" //Specify the slider's height var sliderheight="93px" //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=3 //configure background color: slidebgcolor="" //Specify the slider's images var leftrightslide=new Array() var finalslide='' leftrightslide[0]='<a href="product.html#bearing" onMouseOver="toggleBox(\'bearing\',1);" onMouseOut="toggleBox(\'bearing\',0), toggleBox(\'dmy\',0); " ><img src="img1.jpg" border=0></a>' leftrightslide[1]='<a href="product.html#camshaft" onMouseOver="toggleBox(\'camshaft\',1);" onMouseOut="toggleBox(\'camshaft\',0), toggleBox(\'dmy\',0); " ><img src="img2.jpg" border=0></a>' leftrightslide[2]='<a href="product.html#rod" onMouseOver="toggleBox(\'rod\',1);" onMouseOut="toggleBox(\'rod\',0), toggleBox(\'dmy\',0); " ><img src="img3.jpg" border=0></a>' leftrightslide[3]='<a href="product.html#crankshaft" onMouseOver="toggleBox(\'crankshaft\',1);" onMouseOut="toggleBox(\'crankshaft\',0), toggleBox(\'dmy\',0); " ><img src="img4.jpg" border=0></a>' leftrightslide[4]='<a href="product.html#cylhead" onMouseOver="toggleBox(\'cylhead\',1);" onMouseOut="toggleBox(\'cylhead\',0), toggleBox(\'dmy\',0); " ><img src="img5.jpg" border=0></a>' leftrightslide[5]='<a href="product.html#cylblock" onMouseOver="toggleBox(\'cylblock\',1);" onMouseOut="toggleBox(\'cylblock\',0), toggleBox(\'dmy\',0); " ><img src="img6.jpg" border=0></a>' leftrightslide[6]='<a href="product.html#drycyl" onMouseOver="toggleBox(\'drycyl\',1);" onMouseOut="toggleBox(\'drycyl\',0), toggleBox(\'dmy\',0); " ><img src="img7.jpg" border=0></a>' leftrightslide[7]='<a href="product.html#piston" onMouseOver="toggleBox(\'piston\',1);" onMouseOut="toggleBox(\'piston\',0), toggleBox(\'dmy\',0); " ><img src="img8.jpg" border=0></a>' leftrightslide[8]='<a href="product.html#pistonpin" onMouseOver="toggleBox(\'pistonpin\',1);" onMouseOut="toggleBox(\'pistonpin\',0), toggleBox(\'dmy\',0); " ><img src="img9.jpg" border=0></a>' leftrightslide[9]='<a href="product.html#pistonring" onMouseOver="toggleBox(\'pistonring\',1);" onMouseOut="toggleBox(\'pistonring\',0), toggleBox(\'dmy\',0); " ><img src="img10.jpg" border=0></a>' leftrightslide[10]='<a href="product.html#valveg" onMouseOver="toggleBox(\'valveg\',1);" onMouseOut="toggleBox(\'valveg\',0), toggleBox(\'dmy\',0); " ><img src="img11.jpg" border=0></a>' leftrightslide[11]='<a href="product.html#valvesi" onMouseOver="toggleBox(\'valvesi\',1);" onMouseOut="toggleBox(\'valvesi\',0), toggleBox(\'dmy\',0); " ><img src="img12.jpg" border=0></a>' leftrightslide[12]='<a href="product.html#valvet" onMouseOver="toggleBox(\'valvet\',1);" onMouseOut="toggleBox(\'valvet\',0), toggleBox(\'dmy\',0); " ><img src="img13.jpg" border=0></a>' leftrightslide[13]='<a href="product.html#valve" onMouseOver="toggleBox(\'valve\',1);" onMouseOut="toggleBox(\'valve\',0), toggleBox(\'dmy\',0); " ><img src="img14.jpg" border=0></a>' leftrightslide[14]='<a href="product.html#water" onMouseOver="toggleBox(\'water\',1);" onMouseOut="toggleBox(\'water\',0), toggleBox(\'dmy\',0); " ><img src="img15.jpg" border=0></a>' leftrightslide[15]='<a href="product.html#wetcyl" onMouseOver="toggleBox(\'wetcyl\',1);" onMouseOut="toggleBox(\'wetcyl\',0), toggleBox(\'dmy\',0); " ><img src="img16.jpg" border=0></a>' leftrightslide[16]='<a href="product.html#air" onMouseOver="toggleBox(\'airbreak\',1);" onMouseOut="toggleBox(\'airbreak\',0), toggleBox(\'dmy\',0); " ><img src="img17.jpg" border=0></a>' leftrightslide[17]='<a href="product.html#gasket" onMouseOver="toggleBox(\'gasket\',1);" onMouseOut="toggleBox(\'gasket\',0), toggleBox(\'dmy\',0); " ><img src="img18.jpg" border=0></a>' leftrightslide[18]='<a href="product.html#smbush" onMouseOver="toggleBox(\'smbush\',1);" onMouseOut="toggleBox(\'smbush\',0), toggleBox(\'dmy\',0); " ><img src="img19.jpg" border=0></a>' leftrightslide[19]='<a href="product.html#radiator" onMouseOver="toggleBox(\'radiator\',1);" onMouseOut="toggleBox(\'radiator\',0), toggleBox(\'dmy\',0); " ><img src="img20.jpg" border=0></a>' leftrightslide[20]='<a href="product.html#nut" onMouseOver="toggleBox(\'nut\',1);" onMouseOut="toggleBox(\'nut\',0), toggleBox(\'dmy\',0); " ><img src="img21.jpg" border=0></a>' //Specify gap between each image (use HTML): var imagegap="" //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=0 ////NO NEED TO EDIT BELOW THIS LINE//////////// var copyspeed=slidespeed leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>' var iedom=document.all||document.getElementById if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>') var actualwidth='' var cross_slide, ns_slide function fillup(){ if (iedom){ cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2 cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3 cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth cross_slide2.style.left=actualwidth+slideshowgap+"px" } else if (document.layers){ ns_slide=document.ns_slidemenu.document.ns_slidemenu2 ns_slide2=document.ns_slidemenu.document.ns_slidemenu3 ns_slide.document.write(leftrightslide) ns_slide.document.close() actualwidth=ns_slide.document.width ns_slide2.left=actualwidth+slideshowgap ns_slide2.document.write(leftrightslide) ns_slide2.document.close() } lefttime=setInterval("slideleft()",45) } window.onload=fillup function slideleft(){ if (iedom){ if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px" else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px" if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px" else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px" } else if (document.layers){ if (ns_slide.left>(actualwidth*(-1)+) ns_slide.left-=copyspeed else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap if (ns_slide2.left>(actualwidth*(-1)+) ns_slide2.left-=copyspeed else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap } } if (iedom||document.layers){ with (document){ document.write('<table border="0" cellspacing="1" cellpadding="0" bgcolor="#000000"><td>') if (iedom){ write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">') write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">') write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>') write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>') write('</div></div>') } else if (document.layers){ write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>') write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>') write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>') write('</ilayer>') } document.write('</td></table>') } } </script></td>
  16. Dear All find below a code to populate / display a table The values in array are taken from a stream file or test file made using note pad and hence are changing In tthis i had specified subject as subject="abcd" where asd I want this subject as array valu i.e. $array[$i]; How can I do this ...Please help <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="19" colspan="3" valign="top"> </td> </tr> <?php for ($i=0; $i<=$la-1; $i++) { ?> <tr> <td width="8%" align="center"> </td> <td width="19%" height="25" align="center" valign="top"><img src="bluearrow.jpg" width="15" height="11" vspace="2"></td> <td width="73%" height="25" valign="top"><span class="text12b"> <a href="mailto:nooria@vsnl.com?subject="abcd"><?php echo $array[$i]; ?></a></span></td> </tr> <?php } ?> </table>
  17. A friend of mine copied the mobile file on pc and to his surprise its name (rather extension) become .cbd obviously this file has mobile numbers and name, address This file cannot be read Can anyone help me to read this file Can we do it using PHP ?
  18. want to send following form by email.... Can i send it .... Further Can I send auto response (to the person who fills up the form) and in case we need to store the information entered in database what changes I need to make vis-a-vis norm form on web site I am asking this because the form wil be sent via email and will be filled us online and not on my web site Please please please help <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <? $MODULE="enquirys.php"; $SITENAME="sealretailworld.com"; $SITEMAIL="vikas@prajaktasoftware.com, wrutujas@yahoo.co.in, prajaktasoftware@rediffmail.com"; include("includes/config.inc.php"); include("includes/getsqlvaluestring.inc.php"); include("includes/class.phpmailer.php"); $FormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $FormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } $showform='Y'; if(isset($_POST['Submit'])){ $showform='N'; echo $showform; $subject="New enquiry has been received on $SITENAME"; $message="Enquiry received on $SITENAME <br><br> The details are given below<br> Name: ".$_POST['name']."<br> Address: ".$_POST['address']."<br>
  19. Dear All I want to send following form by email.... Can i send it .... Further Can I send auto response (to the person who fills up the form) and in case we need to store the information entered in database what changes I need to make vis-a-vis norm form on web site I am asking this because the form wil be sent via email and will be filled us online and not on my web site Please please please help <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <? $MODULE="enquirys.php"; $SITENAME="sealretailworld.com"; $SITEMAIL="vikas@prajaktasoftware.com, wrutujas@yahoo.co.in, prajaktasoftware@rediffmail.com"; include("includes/config.inc.php"); include("includes/getsqlvaluestring.inc.php"); include("includes/class.phpmailer.php"); $FormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $FormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } $showform='Y'; if(isset($_POST['Submit'])){ $showform='N'; echo $showform; $subject="New enquiry has been received on $SITENAME"; $message="Enquiry received on $SITENAME <br><br> The details are given below<br> Name: ".$_POST['name']."<br> Address: ".$_POST['address']."<br> City: ".$_POST['city']."<br> State: ".$_POST['state']."<br> Zip: ".$_POST['zip']."<br> Phone No: ".$_POST['isdt']."-".$_POST['stdt']."-".$_POST['tel']."<br> Mobile : ".$_POST['mobile']."<br> Email Id: ".$_POST['email']."<br> Location Details: ".$_POST['locationdetail']."<br> Franchisee City: ".$_POST['franchiseeforcity']."<br> Carpet Area: ".$_POST['carpetarea']."<br> Experience of retail Shift: ".$_POST['experience']."<br> "; $to = $SITEEMAIL; mail($to, $subject, $message, "From: $email\nReply-To: $email\nContent-Type: text/html;"); $alert="<table cellspacing='0' cellpadding='0'> <tr> <td colspan='3'>Dear ".ucwords($_POST['name']).", </td> </tr> <tr> <td colspan='3'><br> Thank you for visiting our site.<br> Your enquiry has been received, one of our customer support officers will get back to you shortly. <p><br> With Best Regards,<br> Team - ".$SITENAME." <br> </p> </td> </tr> </table>"; $to=$email; mail($to, $subject, $message, "From: $email\nReply-To: $email\nContent-Type: text/html;"); $subject = "You had sent following enquiry on $SITENAME"; $to="vikas@prajaktasoftware.com, wrutujas@yahoo.co.in, prajaktasoftware@rediffmail.com"; mail($to, $subject, $message, "From: $email\nReply-To: $email\nContent-Type: text/html;"); } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <?php echo $alert; if($showform=='Y'){?> <form method="post" name="contactus" id="contactus" onsubmit="return formCheck(this)"> <table width="90%" border="0" align="center" cellpadding="2" cellspacing="2" id="formtable"> <tr> <td colspan="3" bgcolor="#F1F1ED" id="toptable"><div align="center"> <p class="normalb12"><strong>Franchisee Details Form </strong></p> </div></td> </tr> <tr> <td colspan="3" align="center" bgcolor="#F1F1ED" id="toptable"></td> </tr> <tr id="row"> <td width="28%" bgcolor="#F1F1ED" class="normalb12" id="formcellinfo"><div align="left"><span class="text">Name:<span class="quicklist">*</span></span></div></td> <td width="72%" colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><input name="name" type="text" class="input" id="name" value="" /></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Address</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <textarea name="address" id="address"></textarea> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">City</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="city" type="text" id="city" /> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">State</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="state" type="text" id="state" /> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Zip</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="zip" type="text" id="zip" size="15" /> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Tel Phone No. </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><input name="isdt" type="text" value="" size="4"/> - <input name="stdt" type="text" id="stdt" value="" size="7"/> - <input name="tel" type="text" value="" size="14"/></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Mobile</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="mobile" type="text" id="mobile" /> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Email Id </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="email" type="text" id="email" /> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Location Details </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <textarea name="locationdetail" id="locationdetail"></textarea> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Franchisee for which city </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="franchiseeforcity" type="text" id="franchiseeforcity" /> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Carpet area (Sq. Ft.) </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="carpetarea" type="text" id="carpetarea" size="12" /> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="normalb12" id="formcellinfo">Experience of Retail Shift(No.of Years). </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="experience" type="text" id="experience" size="8" /> </label></td> </tr> <tr id="row"> <td height="50" bgcolor="#F1F1ED" class="normalb12" id="formcellinfo"> </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><span class="normalb11"> </span></td> </tr> <tr id="row"> <td height="64" colspan="3" align="center" bgcolor="#F1F1ED" class="text12bb" id="formcellinfo"><label> <input name="Submit" type="submit" id="submit" value="Submit" align="middle" /> </label></td> </tr> <!-- <tr id="row"> <td id="formcellinfo"><span class="text">Best time to call: </span></td> <td colspan="2" id="inputcell"><select name="time" id="time"> <option value="Morning" >Morning</option> <option value="Afternoon" selected>Afternoon</option> <option value="Weekend" >Weekend</option> </select></td> </tr> --> </table> </form> <?php } ?> </body> </html>
  20. I have made following form for my client I want to send this via email In this form an email is sent to a> A person who fills up the form b> A person hwaving the web site I want to 1> Send this form via email How can I send this form vial email (cut paste the html is OK) but when person filling up the form (in his / her email) how to acess the server ? I am using Linux server and using code in PHP for sending email 2> In case i need to update database Can i access the server and update details ? Please help The form is given below (at present i am not updating the database) <? $MODULE="enquirys.php"; $SITENAME="sealretailworld.com"; $SITEMAIL="vikas@prajaktasoftware.com, wrutujas@yahoo.co.in, prajaktasoftware@rediffmail.com"; include("includes/config.inc.php"); include("includes/getsqlvaluestring.inc.php"); include("includes/class.phpmailer.php"); $FormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $FormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } $showform='Y'; if(isset($_POST['Submit'])){ $showform='N'; echo $showform; $subject="New enquiry has been received on $SITENAME"; $message="Enquiry received on $SITENAME <br><br> The details are given below<br> Name: ".$_POST['name']."<br> Address: ".$_POST['address']."<br> City: ".$_POST['city']."<br> State: ".$_POST['state']."<br> Zip: ".$_POST['zip']."<br> Phone No: ".$_POST['isdt']."-".$_POST['stdt']."-".$_POST['tel']."<br> Mobile : ".$_POST['mobile']."<br> Email Id: ".$_POST['email']."<br> Location Details: ".$_POST['locationdetail']."<br> Franchisee City: ".$_POST['franchiseeforcity']."<br> Carpet Area: ".$_POST['carpetarea']."<br> Experience of retail Shift: ".$_POST['experience']."<br> "; $to = $SITEEMAIL; mail($to, $subject, $message, "From: $email\nReply-To: $email\nContent-Type: text/html;"); $alert="<table cellspacing='0' cellpadding='0'> <tr> <td colspan='3'>Dear ".ucwords($_POST['name']).", </td> </tr> <tr> <td colspan='3'><br> Thank you for visiting our site.<br> Your enquiry has been received, one of our customer support officers will get back to you shortly. <p><br> With Best Regards,<br> Team - ".$SITENAME." <br> </p> </td> </tr> </table>"; $to=$email; mail($to, $subject, $message, "From: $email\nReply-To: $email\nContent-Type: text/html;"); $subject = "You had sent following enquiry on $SITENAME"; $to="vikas@prajaktasoftware.com, wrutujas@yahoo.co.in, prajaktasoftware@rediffmail.com"; mail($to, $subject, $message, "From: $email\nReply-To: $email\nContent-Type: text/html;"); } ?> <html> <head> <title>indexnew</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="ashokindustry.css" rel="stylesheet" type="text/css"> <script language="JavaScript"> <!-- function formCheck(formobj){ // Enter name of mandatory fields var fieldRequired = Array("name","address","city","state","zip","tel","mobile","email","locationdetail","franchiseeforcity","carpetarea","experience"); // Enter field description to appear in the dialog box var fieldDescription = Array("Name","Address","City","State","Zip","Tel","Mobile","email","Location","Franchisee Details","Carpet Area","Experience"); // dialog message var alertMsg = "Please complete the following fields:\n"; var l_Msg = alertMsg.length; for (var i = 0; i < fieldRequired.length; i++){ var obj = formobj.elements[fieldRequired]; if (obj){ switch(obj.type){ case "select-one": if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){ alertMsg += " - " + fieldDescription + "\n"; } break; case "select-multiple": if (obj.selectedIndex == -1){ alertMsg += " - " + fieldDescription + "\n"; } break; case "text": case "textarea": if (obj.value == "" || obj.value == null){ alertMsg += " - " + fieldDescription + "\n"; } break; case "password": if (obj.value == "" || obj.value == null){ alertMsg += " - " + fieldDescription + "\n"; } break; default: } if (obj.type == undefined){ var blnchecked = false; for (var j = 0; j < obj.length; j++){ if (obj[j].checked){ blnchecked = true; } } if (!blnchecked){ alertMsg += " - " + fieldDescription + "\n"; } } } } if (alertMsg.length == l_Msg){ return true; }else{ alert(alertMsg); return false; } } // --> </script> <link href="file:///U|/smart kids/css.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <!-- ImageReady Slices (indexnew.psd) --> <table id="Table_01" width="770" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> </td> </tr> <tr> <td valign="top"><table width="92%" height="243%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="6%"> </td> <td width="94%" valign="top"> <?php echo $alert; if($showform=='Y'){?> <form method="post" name="contactus" id="contactus" onsubmit="return formCheck(this)"> <table width="100%" border="0" align="center" cellpadding="2" cellspacing="2" id="formtable"> <tr> <td colspan="3" bgcolor="#F1F1ED" id="toptable"><div align="center"> <p><strong>Franchisee Details Form </strong></p> </div></td> </tr> <tr> <td colspan="3" align="center" bgcolor="#F1F1ED" id="toptable"></td> </tr> <tr id="row"> <td width="28%" bgcolor="#F1F1ED" class="text12bb" id="formcellinfo"><div align="left"><span class="text">Name:<span class="quicklist">*</span></span></div></td> <td width="72%" colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><input name="name" type="text" class="input" id="name" value="" /> </td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Address</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <textarea name="address" id="address"></textarea> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">City</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="city" type="text" id="city"> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">State</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="state" type="text" id="state"> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Zip</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="zip" type="text" id="zip" size="15"> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Tel Phone No. </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><input name="isdt" type="text" value="" size="4"/> - <input name="stdt" type="text" id="stdt" value="" size="7"/> - <input name="tel" type="text" value="" size="14"/></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Mobile</td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="mobile" type="text" id="mobile"> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Email Id </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="email" type="text" id="email"> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Location Details </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <textarea name="locationdetail" id="locationdetail"></textarea> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Franchisee for which city </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="franchiseeforcity" type="text" id="franchiseeforcity"> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Carpet area (Sq. Ft.) </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="carpetarea" type="text" id="carpetarea" size="12"> </label></td> </tr> <tr id="row"> <td bgcolor="#F1F1ED" class="text12bb" id="formcellinfo">Experience of Retail Shift(No.of Years). </td> <td colspan="2" bgcolor="#F1F1ED" class="text12bb" id="inputcell"><label> <input name="experience" type="text" id="experience" size="8"> </label></td> </tr> <tr id="row"> <td height="64" colspan="3" align="center" bgcolor="#F1F1ED" class="text12bb" id="formcellinfo"><label> <input name="Submit" type="submit" id="submit" value="Submit" align="middle"> </label></td> </tr> <!-- <tr id="row"> <td id="formcellinfo"><span class="text">Best time to call: </span></td> <td colspan="2" id="inputcell"><select name="time" id="time"> <option value="Morning" >Morning</option> <option value="Afternoon" selected>Afternoon</option> <option value="Weekend" >Weekend</option> </select></td> </tr> --> </table> </form> <?php } ?> </td> </tr> </table></td> </tr> <tr> <td valign="bottom" height="100%"><img src="bottom.jpg" width="770" height="17"></td> </tr> </table> <!-- End ImageReady Slices --> <map name="Map2"> <area shape="rect" coords="612,6,707,325" href="#"> </map> </body> </html>
  21. Dear All I have designed a web page for 800x600 In case the same site is viewed in 1024 resolution, I want to dispay to its full length showing additional column so that the web site will be displayed to its full length How can I do it
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.