Jump to content

casey_00

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Everything posted by casey_00

  1. cool thanks for that... sorry bout the code.. thing... I have entered $subject="From ".$post_vars['Franchise DVD'][0] ; $headers= "From: ".$post_vars['casey.travis@gmail.com'][0] ."\n"; what else do i have to add... i kinda got no idea
  2. Having some trouble anyone know why? Getting this error: Warning: reset() [function.reset]: Passed variable is not an array or object in /clientdata/clients/w/r/wrap-away.com/www/contact1.php on line 15 Warning: current() [function.current]: Passed variable is not an array or object in /clientdata/clients/w/r/wrap-away.com/www/contact1.php on line 20 Your message was successfully sent! _________________________________________________________________________________________ with this code: <? Error_Reporting(E_ALL & ~E_NOTICE); while ($request = current($_REQUEST)) { if (key($_REQUEST)!='recipient') { $pre_array=split ("&777&", $request); $post_vars[key($_REQUEST)][0]=$pre_array[0]; $post_vars[key($_REQUEST)][1]=$pre_array[1]; } next($_REQUEST); } reset($post_vars); $subject="From ".$post_vars['your_name'][0] ; $headers= "From: ".$post_vars['your_email'][0] ."\n"; $headers.='Content-type: text/html; charset=iso-8859-1'; $message=''; while ($mess = current($post_vars)) { if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) { $message.="<strong>".$mess[1]."</strong> ".$mess[0]."<br>"; } next($post_vars); } mail($_REQUEST['casey.travis@gmail.com'], $subject, " <html> <head> <title>Contact letter</title> </head> <body> <br> ".$message." </body> </html>" , $headers); echo ("Your message was successfully sent!"); ?> <script> resizeTo(300, 300); </script>
  3. thanks guys... ill use one of them !
  4. built a site, with php. but want a backend so that they can login and update it when ever they wish. Like snippet master... google it if you are not sure what i mean. I have googled the hell out of it and i cant find a proper one... theres plenty out there though
  5. anyone know of a backend that will allow my clients to login and alter their sites? looking for something free like Opensource. Tried Snippet Master and found its a load of crap, good idea but dosent perform simple functions like inserting an image. any ideas? or anyone know what i would look up? i have tried heaps can find a normal one...
  6. hey was wondering what i have to add to get the email sending as html instead of just text... all working fine but when i add html tags it comes through too. any help? eg <strong>Name</strong> : test <strong>Company</strong>: none <strong>Email</strong> : none@none.com <strong>Subject</strong> : test <strong>Message</strong>: test
  7. thanks man, i blocked it. any help is appreciated!
  8. definately some images man, but looks nice and clean... well done
  9. welll you have coped some hard comments so ill keep mine simple.... get ride of the times new roman!! well done man, keep at it
  10. cleans good man, keep it that way... its the way to go.... if you want some critism um... thebuttons could be made alittle smaller... but thats cool.... anyway man... well done.
  11. hey guys there are stillthings i am doing on this site, but the more comments i can get the better... not too great with the old php ??? check it out: www.blushcentral.com tahguys
  12. still working onit... taking a while, but im getting there. www.blushcentral.com if you want to login you can: user: blank password: blank comments would be cool. thanks guys!
  13. this is all automated, so the to: and subject are automatically added, so basically in my php file i have a list of them... currently this works... but i want to add tables to it to make it a better layout... but when i add the tables it has a fit and doesnt like table width etc... can i write table in a different way apart from <table width 200 etc... as i said the below code works fine... but want to add more to it /* HTML emails */ $lang['message_viewed']['html'] = 'Dear #FirstName#,<br><br>This is an automatic notification to inform you that your message to #RecipientName# on #siteName# has been viewed by the user. Come visit us at <a href=\"#link#\">#siteName#</a>.<br><br>Good Luck!<br>#AdminName#'; $lang['profile_activated']['html'] = "Dear #FirstName#,<br><br>This is an automatic notification to inform you that your profile on #siteName# has been activated with the membership level of #MembershipLevel#. Come visit us soon at <a href=\"#link#\">#siteName#</a>.<br><br>Good Luck!<br>#AdminName#";
  14. ??? What would i have to add to be able to place proper html in this email... eg adding tables etc... when i add a table it has a heart attack... anyone know why? $lang['message_read']['html'] = "Dear #FirstName#,<br><br>The message you sent to '#RecipientName#' has been read.<br><br>Good Luck!<br>#AdminName#";
  15. Well it keeps coming up on the image as text... i want it to pull the image as a watermark. So its working good, but instead of img src= etc coming on the image i want the cross image... this is the top part of the code. i havent defined the image apart from what i have there. is that right, or do i have to put it in elsewhere... if ( $config['watermark_snaps'] != '' ){ /* Watermark the picture */ Define('WATERMARK_TEXT_FONT', '3'); // font 1 / 2 / 3 / 4 / 5 Define('TEXT_SHADOW', $config['watermark_text_shadow']); // 1 - yes / 0 - no Define('TEXT_COLOR', $config['watermark_text_color']); // text color Define('WATERMARK_ALIGN_H', $config['watermark_position_h']); // left / right / center Define('WATERMARK_ALIGN_V', $config['watermark_position_v']); // top / bottom / center Define('WATERMARK_MARGIN', $config['watermark_margin']); // margin Define('WATERMARK_TEXT', "<img src=\"/images/cross.jpg'\">", true); // margin think im royally screwing this up... thats why im here i guess!!! any help?
  16. thanks man... ill give that a go... that is along the lines that i needed
  17. :)hey guys im no php programmer but im trying to tell this thing to use an image. can any one see a problem with this line. cause its not working... Define('WATERMARK_TEXT', $img['../images/cross.jpg']); // margin ??? any help would be great
  18. dont know how i did it but its finally working... slash here slash there... seems to work thanks guys
  19. yep they are in the rotate folder... seems simple i know... but it has me stumped
  20. thanks man but it still isnt working: this is what i have now: // Make this the relative path to the images, like "../img" or "random/images/". // If the images are in the same directory, leave it blank. $folder = '/rotate/'; since its in the same folder, but it doesnt pull it... its like it doesnt open the php file at all... any other suggestions?
  21. tryed everthing possible... cant work it out any help guys ???
  22. hey guys, i am using a cut and paste random image script and i cant find why it is not displaying the images. this is the code i have for it... ??? I pull it using this <img src="rotate/rotate.php" /> you can see the proper site at http://www.wrap-away.com/index.php?page=wrapmenu <?php /* By Matt Mullenweg > http://photomatt.net Inspired by Dan Benjamin > http://hiveware.com/imagerotator.php Latest version always at: http://photomatt.net/scripts/randomimage */ // Make this the relative path to the images, like "../img" or "random/images/". // If the images are in the same directory, leave it blank. $folder = ''; // Space seperated list of extensions, you probably won't have to change this. $exts = 'jpg jpeg png gif'; $files = array(); $i = -1; // Initialize some variables if ('' == $folder) $folder = './'; $handle = opendir($folder); $exts = explode(' ', $exts); while (false !== ($file = readdir($handle))) { foreach($exts as $ext) { // for each extension check the extension if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive $files[] = $file; // it's good ++$i; } } } closedir($handle); // We're not using it anymore mt_srand((double)microtime()*1000000); // seed for PHP < 4.2 $rand = mt_rand(0, $i); // $i was incremented as we went along header('Location: '.$folder.$files[$rand]); // Voila! ?> Any help?
×
×
  • 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.