|
We were having this problem too for a second tonight... this was the only resource we found too.
Heres our code that work... youll have to create the table consumercars with all the column names we have here... but at least this is a great start
our action page was called added.cfm
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Cool Car Uploaded</title> <style type="text/css"> <!-- body,td,th { color: #FFFFFF; } body { background-color: #000000; } a:link { color: #FFFFFF; } a:visited { color: #FFFFFF; } a:active { color: #FFFFFF; } a:hover { color: #999999; } .style7 { font-size: 18px; } #apDiv4 { position:absolute; width:395px; height:68px; z-index:3; left: 476px; top: 20px; } #apDiv { position:absolute; width:395px; height:68px; z-index:3; left: 476px; top: 20px; } --> </style> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> </head> <body>
<p> <cfinsert datasource="userLogin1" dbtype="ODBC" tablename="consumercars" formfields="vehYear, vehMake, vehModel, vehVIN, vehMileage, vehPrice"> </p> <div id="apDiv4"> <div align="right"> <p align="right"><a href="http://sellcoolcars.com/upload_photos/cf_upload.cfm" class="style7">photo upload </a> <a href="http://sellcoolcars.com/" class="style7"> HOME </a><a href="http://sellcoolcars.com/login/login.cfm" class="style7">Login </a><a href="http://sellcoolcars.com/SellCoolCars_contact.cfm" class="style7">Contact Us</a></p> </div> </div> <div id="apDiv"> <div align="right"> <p align="right"><a href="http://sellcoolcars.com/upload_photos/cf_upload.cfm" class="style7">photo upload </a> <a href="http://sellcoolcars.com/" class="style7"> HOME </a><a href="http://sellcoolcars.com/login/login.cfm" class="style7">Login </a><a href="http://sellcoolcars.com/SellCoolCars_contact.cfm" class="style7">Contact Us</a></p> </div> </div> <h1> </h1> <p> </p> <div align="center"> <p> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','height','100','align','middle','title','Under Construction','src','1112','loop','false','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','1112' ); //end AC code </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="100" align="middle" title="Under Construction"> <param name="movie" value="1112.swf" /> <param name="quality" value="high" /> <param name="LOOP" value="false" /> <embed src="1112.swf" width="800" height="100" loop="False" align="middle" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed> </object> </noscript> </p> <p> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','height','25','title','SELL YOUR COOL CARS','src','1123','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','1123' ); //end AC code </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="25" title="SELL YOUR COOL CARS"> <param name="movie" value="1123.swf" /> <param name="quality" value="high" /> <embed src="1123.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="25"></embed> </object> </noscript> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','800','height','20','title','SELL YOUR COOL CARS','src','test1123','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','test1123' ); //end AC code </script> <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="800" height="20" title="SELL YOUR COOL CARS"> <param name="movie" value="test1123.swf" /> <param name="quality" value="high" /> <embed src="test1123.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="800" height="20"></embed> </object> </noscript> </p> </div> <p> </p> <p> </p> <p> </p> <p> </p> <cfif isdefined("FORM.upload_now")> <cffile accept="image/gif, image/jpeg" action="upload" destination="D:\home\sellcoolcars.com\wwwroot\upload_photos\photos" filefield="vehPhoto1" nameconflict="makeunique"> <cfoutput> <h1>New Vehicle</h1> #FORM.vehYear#, #FORM.vehMake#, #FORM.vehModel# <h1>has been added</h1> </cfoutput> </cfif> <p> </p> </body> </html>
and then this is our members_only
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Members Only</title> <style type="text/css"> <!-- body,td,th { color: #FFFFFF; } body { background-color: #000000; } a:link { color: #FFFFFF; } a:visited { color: #FFFFFF; } a:hover { color: #999999; } a:active { color: #FFFFFF; } .style7 { font-size: 18px; } #apDiv4 { position:absolute; width:395px; height:68px; z-index:3; left: 476px; top: 20px; } --> </style></head>
<body>
<p> <!--- Upload Info/Photos ---> </p> <div id="apDiv4"> <div align="right"> <p align="right"><a href="http://sellcoolcars.com/upload_photos/cf_upload.cfm" class="style7">photo upload </a> <a href="http://sellcoolcars.com/" class="style7"> HOME </a><a href="http://sellcoolcars.com/login/login.cfm" class="style7">Login </a><a href="http://sellcoolcars.com/SellCoolCars_contact.cfm" class="style7">Contact Us</a></p> </div> </div> <p> </p> <p> </p> <form action="added.cfm" method="post" enctype="multipart/form-data" name="fileUpload" id="fileUpload"> <h1>Please enter your vehicle information and then click <strong>Upload</strong>. </h1> <p> <input type="integer" name="vehYear" /> Year:<br /> <input type="text" name="vehMake" /> Make: <br /> <input type="text" name="vehModel" /> Model: <br /> <input type="varChar" name="vehVIN" /> VIN:<br /> <input type="int" name="vehMileage" /> Mileage:<br /> <input type="int" name="vehPrice" /> Price: <br /> </p> <h3>Upload Photos of Your Cool Car</h3> <table width="526" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto1" id="file1" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto2" id="file2" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto3" id="file3" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto4" id="file4" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto5" id="file5" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto6" id="file6" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto7" id="file7" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto8" id="file8" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto9" id="file9" /></td> </tr> <tr> <td width="137">Upload an Image <label></label></td> <td width="374"><input type="file" name="vehPhoto10" id="file10" /></td> </tr> </table> <hr/> <input name="upload_now" type="submit" id="upload_now" value="Sell Your Car" /> </form> <p> </p> </body> </html>
oh i forgot youre gonna be missing the swf files... oh well you can see them and download them at sellcoolcars.com if you want
Peace
Jerritt
jerrittpace@yahoo.ie
|