davispowell Posted September 23, 2008 Share Posted September 23, 2008 Using PHP on a me.com website? I have a form from my old website that should work....but I cant get it to function. duu help? thanks! davis http://www.davispowell.com/davispowell/Models.html it's hosted on the mac.com website....(Now called www.me.com) Link to comment https://forums.phpfreaks.com/topic/125433-using-php-on-a-mecom-website/ Share on other sites More sharing options...
trq Posted September 23, 2008 Share Posted September 23, 2008 Sorry, your question / problem is? Link to comment https://forums.phpfreaks.com/topic/125433-using-php-on-a-mecom-website/#findComment-648481 Share on other sites More sharing options...
davispowell Posted September 23, 2008 Author Share Posted September 23, 2008 I'm having trouble figuring out where exactly to put the cform folder. the way it's contructed is different than I'm used to. it should work yes? Link to comment https://forums.phpfreaks.com/topic/125433-using-php-on-a-mecom-website/#findComment-648482 Share on other sites More sharing options...
trq Posted September 23, 2008 Share Posted September 23, 2008 I'm having trouble figuring out where exactly to put the cform folder. the way it's contructed is different than I'm used to. it should work yes? You need to explain in detail your issue. At the moment your post make absolutely no sense. Link to comment https://forums.phpfreaks.com/topic/125433-using-php-on-a-mecom-website/#findComment-648483 Share on other sites More sharing options...
davispowell Posted September 23, 2008 Author Share Posted September 23, 2008 http://www.davispowell.com/davispowell/Models.html click this to see what it is. And it's not working ....its not submiting. can someone help me? when you fill it all out it trys to open a file called HIQFM.php and asks if you want to save it. Link to comment https://forums.phpfreaks.com/topic/125433-using-php-on-a-mecom-website/#findComment-648491 Share on other sites More sharing options...
Mchl Posted September 23, 2008 Share Posted September 23, 2008 There isn't even a submit button? Do you have PHP available on your server? Link to comment https://forums.phpfreaks.com/topic/125433-using-php-on-a-mecom-website/#findComment-648535 Share on other sites More sharing options...
xoligy Posted September 23, 2008 Share Posted September 23, 2008 looking at the form code there is ment to be one, davis it helps if you actually post the code pf the forum in code tags otherwise people carnt help! looking at it you need to change location as you have it as follows: .//Models_files/widget1_markup.html if yor going back a folder it should be ../Models_files/widget1_markup.html nevermind src should be http://www.davispowell.com/davispowell/Models_files/widget1_markup.html here the code i can get tho davis needs to post the original <!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 name="generator" content="HTML Tidy for Windows (vers 25 January 2008), see www.w3.org" /> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <script language="javascript" type="text/javascript" src="niceforms.js"> </script> <style type="text/css"> /*<![CDATA[*/ <!-- @import url("niceforms-default.css"); body { background-color: #FFFFFF; } .style2 {color: #FF0000} .style3 { font-size: 10px; color: #FF0000; } .style4 {color: #000000} body,td,th { color: #000000; } --> /*]]>*/ </style> <script type="text/JavaScript"> //<![CDATA[ <!-- function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function YY_checkform() { //v4.71 //copyright (c)1998,2002 Yaromat.com var a=YY_checkform.arguments,oo=true,v='',s='',err=false,r,o,at,o1,t,i,j,ma,rx,cd,cm,cy,dte,at; for (i=1; i<a.length;i=i+4){ if (a[i+1].charAt(0)=='#'){r=true; a[i+1]=a[i+1].substring(1);}else{r=false} o=MM_findObj(a[i].replace(/\[\d+\]/ig,"")); o1=MM_findObj(a[i+1].replace(/\[\d+\]/ig,"")); v=o.value;t=a[i+2]; if (o.type=='text'||o.type=='password'||o.type=='hidden'){ if (r&&v.length==0){err=true} if (v.length>0) if (t==1){ //fromto ma=a[i+1].split('_');if(isNaN(v)||v<ma[0]/1||v > ma[1]/1){err=true} } else if (t==2){ rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-zA-Z]{2,4}$");if(!rx.test(v))err=true; } else if (t==3){ // date ma=a[i+1].split("#");at=v.match(ma[0]); if(at){ cd=(at[ma[1]])?at[ma[1]]:1;cm=at[ma[2]]-1;cy=at[ma[3]]; dte=new Date(cy,cm,cd); if(dte.getFullYear()!=cy||dte.getDate()!=cd||dte.getMonth()!=cm){err=true}; }else{err=true} } else if (t==4){ // time ma=a[i+1].split("#");at=v.match(ma[0]);if(!at){err=true} } else if (t==5){ // check this 2 if(o1.length)o1=o1[a[i+1].replace(/(.*\[)|(\].*)/ig,"")]; if(!o1.checked){err=true} } else if (t==6){ // the same if(v!=MM_findObj(a[i+1]).value){err=true} } } else if (!o.type&&o.length>0&&o[0].type=='radio'){ at = a[i].match(/(.*)\[(\d+)\].*/i); o2=(o.length>1)?o[at[2]]; if (t==1&&o2&&o2.checked&&o1&&o1.value.length/1==0){err=true} if (t==2){ oo=false; for(j=0;j<o.length;j++){oo=oo||o[j].checked} if(!oo){s+='* '+a[i+3]+'\n'} } } else if (o.type=='checkbox'){ if((t==1&&o.checked==false)||(t==2&&o.checked&&o1&&o1.value.length/1==0)){err=true} } else if (o.type=='select-one'||o.type=='select-multiple'){ if(t==1&&o.selectedIndex/1==0){err=true} }else if (o.type=='textarea'){ if(v.length<a[i+1]){err=true} } if (err){s+='* '+a[i+3]+'\n'; err=false} } if (s!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+s)} document.MM_returnValue = (s==''); } //--> //]]> </script> </head> <body> <div id="container"> <form action="HIQFM.php" method="post" enctype="multipart/form-data" name="form1" id="form1" onsubmit= "YY_checkform('form1','First Name','#q','0','Field \'First Name\' is not valid.','Surname','#q','0','Field \'Surname\' is not valid.','Date Of Birth','#q','0','Field \'Date Of Birth\' is not valid.','Email','S','2','Field \'Email\' is not valid.','Telephone','#q','0','Field \'Telephone\' is not valid.','Suburb','#q','0','Field \'Suburb\' is not valid.','State','#q','0','Field \'State\' is not valid.','Postcode','#q','0','Field \'Postcode\' is not valid.');return document.MM_returnValue"> <input type="hidden" name="subject" value="New Model From DWPNY" /><br /> <table width="602" border="0"> <!--DWLayoutTable--> <tr> <td width="176" rowspan="2">I am interested in:</td> <td width="342" height="15" valign="top"><input type="checkbox" name="I am interested in option1" id="check" value="MODELING" /><label for="check">MODELING</td> <td width="71"></td> </tr> <tr> <td height="5" valign="top"><input type="checkbox" name="I am interested in option2" id="check2" value="PROMOTIONS" /><label for="check2">PROMOTIONS</td> <td></td> </tr> <tr> <td height="15"></td> <td valign="top"><input type="checkbox" name="I am interested in option3" id="check3" value="ACTING" /><label for="check3">ACTING</td> <td></td> </tr> <tr> <td height="4"></td> <td valign="top"><input type="checkbox" name="I am interested in option4" id="check4" value="SINGING" /><label for="check4">SINGING</td> <td></td> </tr> <tr> <td height="21">First Name:</td> <td align="left" valign="middle"><input name="First Name" type="text" id="First Name" /> <span class="style2">*</span><br /></td> <td></td> </tr> <tr> <td height="21">Surname:</td> <td><input name="Surname" type="text" id="Surname" /> <span class="style2">*</span></td> <td></td> </tr> <tr> <td height="22">Date of Birth:</td> <td><input name="Personal Info" type="text" class="transparent" id="Date Of Birth" value="Date Of Birth" /></td> <td></td> </tr> <tr> <td height="22" valign="middle"> <div align="right"> <span class="style2">*</span> Day </div> </td> <td><select size="1" id="Day" name="Day"> <option value="1"> 1 </option> <option value="2"> 2 </option> <option value="3"> 3 </option> <option value="4"> 4 </option> <option value="5"> 5 </option> <option value="6"> 6 </option> <option value="7"> 7 </option> <option value="8"> 8 </option> <option value="9"> 9 </option> <option value="10"> 10 </option> <option value="11"> 11 </option> <option value="12"> 12 </option> <option value="13"> 13 </option> <option value="14"> 14 </option> <option value="15"> 15 </option> <option value="16"> 16 </option> <option value="17"> 17 </option> <option value="18"> 18 </option> <option value="19"> 19 </option> <option value="20"> 20 </option> <option value="21"> 21 </option> <option value="22"> 22 </option> <option value="23"> 23 </option> <option value="24"> 24 </option> <option value="25"> 25 </option> <option value="26"> 26 </option> <option value="27"> 27 </option> <option value="28"> 28 </option> <option value="29"> 29 </option> <option value="30"> 30 </option> <option value="31"> 31 </option> </select></td> <td></td> </tr> <tr> <td height="22"> <div align="right"> <span class="style2">*</span> Month </div> </td> <td><select size="1" id="Month" name="month"> <option value="January"> January </option> <option value="February"> February </option> <option value="March"> March </option> <option value="April"> April </option> <option value="May"> May </option> <option value="June"> June </option> <option value="July"> July </option> <option value="August"> August </option> <option value="September"> September </option> <option value="October"> October </option> <option value="November"> November </option> <option value="December"> December </option> </select></td> <td></td> </tr> <tr> <td height="22"> <div align="right"> <span class="style2">*</span> Year </div> </td> <td><select size="1" id="Year" name="year"> <option value="2002"> 2002 </option> <option value="2001"> 2001 </option> <option value="2000"> 2000 </option> <option value="1999"> 1999 </option> <option value="1998"> 1998 </option> <option value="1997"> 1997 </option> <option value="1996"> 1996 </option> <option value="1995"> 1995 </option> <option value="1994"> 1994 </option> <option value="1993"> 1993 </option> <option value="1992"> 1992 </option> <option value="1991"> 1991 </option> <option value="1990"> 1990 </option> <option value="1989"> 1989 </option> <option value="1988"> 1988 </option> <option value="1987"> 1987 </option> <option value="1986"> 1986 </option> <option value="1985"> 1985 </option> <option value="1984"> 1984 </option> <option value="1983"> 1983 </option> <option value="1982"> 1982 </option> <option value="1981"> 1981 </option> <option value="1980"> 1980 </option> <option value="1982"> 1982 </option> <option value="1981"> 1981 </option> <option value="1980"> 1980 </option> <option value="1979"> 1979 </option> <option value="1978"> 1978 </option> <option value="1977"> 1977 </option> <option value="1976"> 1976 </option> <option value="1975"> 1975 </option> <option value="1974"> 1974 </option> <option value="1973"> 1973 </option> <option value="1972"> 1972 </option> <option value="1971"> 1971 </option> <option value="1970"> 1970 </option> <option value="1969"> 1969 </option> <option value="1968"> 1968 </option> <option value="1967"> 1967 </option> <option value="1966"> 1966 </option> <option value="1965"> 1965 </option> <option value="1964"> 1964 </option> <option value="1963"> 1963 </option> <option value="1962"> 1962 </option> <option value="1961"> 1961 </option> <option value="1960"> 1960 </option> <option value="1959"> 1959 </option> <option value="1958"> 1958 </option> <option value="1957"> 1957 </option> <option value="1956"> 1956 </option> <option value="1955"> 1955 </option> <option value="1954"> 1954 </option> <option value="1953"> 1953 </option> <option value="1952"> 1952 </option> <option value="1951"> 1951 </option> <option value="1950"> 1950 </option> <option value="1949"> 1949 </option> <option value="1948"> 1948 </option> <option value="1947"> 1947 </option> <option value="1946"> 1946 </option> <option value="1945"> 1945 </option> <option value="1944"> 1944 </option> <option value="1943"> 1943 </option> <option value="1942"> 1942 </option> <option value="1941"> 1941 </option> <option value="1940"> 1940 </option> <option value="1939"> 1939 </option> <option value="1938"> 1938 </option> <option value="1937"> 1937 </option> <option value="1936"> 1936 </option> <option value="1935"> 1935 </option> <option value="1934"> 1934 </option> <option value="1933"> 1933 </option> <option value="1932"> 1932 </option> <option value="1931"> 1931 </option> <option value="1930"> 1930 </option> <option value="1929"> 1929 </option> <option value="1928"> 1928 </option> <option value="1927"> 1927 </option> <option value="1926"> 1926 </option> <option value="1925"> 1925 </option> <option value="1924"> 1924 </option> <option value="1923"> 1923 </option> <option value="1922"> 1922 </option> <option value="1921"> 1921 </option> <option value="1920"> 1920 </option> <option value="1919"> 1919 </option> <option value="1918"> 1918 </option> <option value="1917"> 1917 </option> <option value="1916"> 1916 </option> <option value="1915"> 1915 </option> <option value="1914"> 1914 </option> <option value="1913"> 1913 </option> <option value="1912"> 1912 </option> <option value="1911"> 1911 </option> <option value="1910"> 1910 </option> <option value="1909"> 1909 </option> <option value="1908"> 1908 </option> <option value="1907"> 1907 </option> <option value="1906"> 1906 </option> <option value="1905"> 1905 </option> <option value="1904"> 1904 </option> <option value="1903"> 1903 </option> <option value="1902"> 1902 </option> <option value="1901"> 1901 </option> <option value="1900"> 1900 </option> </select></td> <td></td> </tr> <tr> <td>Email:</td> <td colspan="2" valign="top"><input name="Email" type="text" id="Email" /> <span class="style2">*</span></td> </tr> <tr> <td>Telephone:</td> <td><input name="Telephone" type="text" id="Telephone" /> <span class="style2">*</span></td> <td></td> </tr> <tr> <td>Street Address</td> <td><input name="Street Address" type="text" id="Street Address" /></td> <td></td> </tr> <tr> <td height="21">Suburb:</td> <td><input name="Suburb" type="text" id="Suburb" /> <span class="style2">*</span></td> <td></td> </tr> <tr> <td height="21">State:</td> <td><input name="State" type="text" id="State" /> <span class="style2">*</span></td> <td></td> </tr> <tr> <td height="21">Postcode:</td> <td><input name="Postcode" type="text" id="Postcode" /> <span class="style2">*</span></td> <td></td> </tr> <tr> <td height="22" valign="top">Skills<br /> ie: gymnastics, horseriding</td> <td> <textarea name="Skills" id="Skills"> </textarea></td> <td valign="top"></td> </tr> <tr> <td height="21" valign="top">Height - Sizes:<br /> Other details<br /> ie: tatts?</td> <td> <textarea name="Height_Sizes_Details" id="Height_Sizes_Details"> </textarea></td> <td valign="top"></td> </tr> <tr> <td height="50" valign="top">Extra credit:<br /> Why we should choose you..?</td> <td> <textarea name="Extra Credit" id="Extra Credit"> </textarea></td> <td valign="top"></td> </tr> <tr> <td height="21" valign="top"><strong>Attach Your Photos</strong></td> <td>Two photos please....more if you like...Max Size 2MB combined</td> <td></td> </tr> <tr> <td height="21" valign="top"><!--DWLayoutEmptyCell--> </td> <td><input name="attachment[]" type="file" id="attachment[]" /> <span class="style2">*</span></td> <td></td> </tr> <tr> <td height="21" valign="top"><!--DWLayoutEmptyCell--> </td> <td><input name="attachment[]" type="file" id="attachment[]" /> <span class="style2">*</span></td> <td></td> </tr> <tr> <td height="21" valign="top"><!--DWLayoutEmptyCell--> </td> <td><input name="attachment[]" type="file" id="attachment[]" /></td> <td></td> </tr> <tr> <td height="21" valign="top"><!--DWLayoutEmptyCell--> </td> <td><input name="attachment[]" type="file" id="attachment[]" /></td> <td></td> </tr> <tr> <td height="21" valign="top"><!--DWLayoutEmptyCell--> </td> <td> <div align="right" class="style3"> * require fields </div> </td> <td></td> </tr> <tr> <td height="21" valign="top"><!--DWLayoutEmptyCell--> </td> <td> <div align="right"> <input name="Submit" type="submit" value="Submit " /> </div> </td> <td></td> </tr> </table> <div id="stylesheetTest"></div> </form> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/125433-using-php-on-a-mecom-website/#findComment-648543 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.