Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ernie_flowers

Members
  • Joined

  • Last visited

  1. OK thank you. At the moment i am trying to get the layout done right. What i have learned is that you have to make all the boxs and place them out. I also noticed that pro web designs tend to make their boxs with 1 3rd bond. Not a straight bond. At the moment it is just the boxs before i add any of the type. It would help if people say whats bad about it at the moment. Not that its not a finished website. We know that. Whats bad? Is the design so far to boring? is the logo horrible? Are the boxs bad? Any suggestions much apreciated so that i can try them in my next attempt. Next time i want to try black and white colors. So are people saying that at the moment what i have here is horrible? If so why. Not its not a finished website. I know that.
  2. Ok Im just trying to get the lay out done right. Can you tell me if i am going in the right direction. I call this design, "blamange dreams" http://s8.postimage.org/mo21muc39/red_star_leagues.png I have to do more designs tho, because i think my target audience wouldnt use this site beause of the pink/white colours.
  3. Also I wouldnt do this if($email == '') return false; I would use if (! empty($email)) { etc etc etc } else { etc etc etc } I know you can run into problems writing it like $email =''. I cant remeber what they were tho. I think its either because of the space having a value of space. Or empty entries on the database.
  4. I think that on your html form you dont have a method i think its called. Like you need to say POST or GET. On your php form i didnt go thru it all in detail. but i did see if($email == '') return false; else $eregi = preg_replace($regex, '', $email); return empty($eregi) ? true : false; I noticed that your else wasn't wrapped in {} like i thought you had to write those statements like this. if ( $t < 1) { echo "blah blah blah"; } else { "No its asscheeks didnt work im afraid" ; } //close else. I dont know. To me it looks like you have an awful lot of errors in your script. But maybe there is another way of writing php that i dont know about. I only write php the way i do it, I dont know everything about it.
  5. I put my session stars in the html header. I think the session start has to be the very first line of text on the page for it to work. I dont think you can even have 1 space.
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR...ml4/loose.dtd"> <html> <head> <title>E-mail with Attachment</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?php if ($_SERVER['REQUEST_METHOD']=="POST"){ // we'll begin by assigning the To address and message subject $to="me@me.com"; $subject="E-mail with attachment"; // get the sender's name and email address // we'll just plug them a variable to be used later $from = stripslashes($_POST['fromname'])."<".stripslashes($_POST['fromemail']).">"; // generate a random string to be used as the boundary marker $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x"; // now we'll build the message headers $headers = "From: $from\r\n" . "MIME-Version: 1.0\r\n" . "Content-Type: multipart/mixed;\r\n" . " boundary=\"{$mime_boundary}\""; // here, we'll start the message body. // this is the text that will be displayed // in the e-mail $message="This is an example"; // next, we'll build the invisible portion of the message body // note that we insert two dashes in front of the MIME boundary // when we use it $message = "This is a multi-part message in MIME format.\n\n" . "--{$mime_boundary}\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $message . "\n\n"; // now we'll process our uploaded files foreach($_FILES as $userfile){ // store the file information to variables for easier access $tmp_name = $userfile['tmp_name']; $type = $userfile['type']; $name = $userfile['name']; $size = $userfile['size']; // if the upload succeded, the file will exist if (file_exists($tmp_name)){ // check to make sure that it is an uploaded file and not a system file if(is_uploaded_file($tmp_name)){ // open the file for a binary read $file = fopen($tmp_name,'rb'); // read the file content into a variable $data = fread($file,filesize($tmp_name)); // close the file fclose($file); // now we encode it and split it into acceptable length lines $data = chunk_split(base64_encode($data)); } // now we'll insert a boundary to indicate we're starting the attachment // we have to specify the content type, file name, and disposition as // an attachment, then add the file content. // NOTE: we don't set another boundary to indicate that the end of the // file has been reached here. we only want one boundary between each file // we'll add the final one after the loop finishes. $message .= "--{$mime_boundary}\n" . "Content-Type: {$type};\n" . " name=\"{$name}\"\n" . "Content-Disposition: attachment;\n" . " filename=\"{$fileatt_name}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n"; } } // here's our closing mime boundary that indicates the last of the message $message.="--{$mime_boundary}--\n"; // now we just send the message if (@mail($to, $subject, $message, $headers)) echo "Message Sent"; else echo "Failed to send"; } else { ?> <p>Send an e-mail with an attachment:</p> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data" name="form1"> <p>Your name: <input type="text" name="fromname"></p> <p>Your e-mail: <input type="text" name="fromemail"></p> <p>Mod List: <textarea name="question" maxlength="1000" cols="25" rows="6" name="modlist"></textarea> <p>File: <input type="file" name="file1"></p> <p>File: <input type="file" name="file2"></p> <p>File: <input type="file" name="file3"></p> <p>File: <input type="file" name="file4"></p> <p>File: <input type="file" name="file5"></p> <p>File: <input type="file" name="file6"></p> <p>File: <input type="file" name="file7"></p> <p>File: <input type="file" name="file8"></p> <p><input type="submit" name="Submit" value="Submit"></p> </form> <?php } ?> </body> </html> * 0 I found this code on the interweb. The person was asking how they could add or subtract the number of form fields. That should be as easy as copying and pasting the line of code where it says. <p>File: <input type="file" name="file8"></p> And just changing the end number from 8 to 9 etc. Or deletingt them. The script is in a Foreach loop wich means it will just cycle thru all the form fields that are present.
  7. I can write you a custom script doing that, if you make me a web page design.
  8. Ok I decided i dont hate the 3-5 years it takes to get adequate skills at design to make a passable website. I started my web intrests years ago, but i was no good at desgn so i decided to learn php instead. What i want to know is, is it ok to use templates? I mean really who is going to notice that i am using a template? also i can modify them slightly i suppose. Me reasoning is, that unless you are a multi million pound bussniess or your website has big hits, there is no real point worrying about a unique design. If that time comes then its right to invest in a webdesigner. I have found some good templates on the internet. Does anyone know of any nice templates? Im looking for 1 that will display avatars of lots of users. And have text sections and also room for an mp3 player and maybe a video box. I would very much appreciate suggestions from great designers on what a good template to use is. Thank you for your time!
  9. Yes thats the book i use! I been refering to it for about 5 years on and off i suppose. Its complicated to get into and its not as easy as some ways i have seen online for explaining things. Buts its very complete! It covers most things you need to know fairly well. I also like the scripts that came with the book. I saved time by using a modified version of the login system for my own website I have been working on. I wouldnt like to say I know php because im not sure at what point you can say that. Like i have written a 70 page original application with thousands an thousands of lines of uniquye code. But i still dont feel like i know php. There are just so many functions and concepts to master! Tho i must say learning php has given me a desire to want to learn ruby on rails! I just like the sound of "ruby on rail" I think python isnt as good a name for a programming language. Tho i know python is probably more popular. I just wish i could make good graphic designs to go with my php!
  10. I thought php cleared the memory anyway at the end of the script. Also is the free_result the same as the mysql_close? Right i made a script that uses **** loads of loops. And what was happening was i had to change the names of the querys, because the querys would jam up the scripts when the the script repeated itself. In the end i think i ended up using the mysql close alot at the end of each loop to empty out all the $vars and stuff.
  11. I had an intreasting evening looking at peoples websites and reviewing them. My time is very valuable, so i try not to waste any! I am actually a php programmer and i have made a big web application. But i need to learn how to make an interface! So what i have gleened is that most people who have posted sites tend to have a prefabricated or template feel to them. I only really saw 1 site today here (the magneto music shop) that really had a stand out professional feel to it. What i find amaizng is, tho i am graphically challenged, I can still tell what a pro job is from a run of the mill one. Its amazing how the pro web designers can trasmit that elegance and simplicity to even man in the street like me. I did notice as well that the really good web designers tend to also be quiet about what they are doing. but i noticed also that many of the templateers tend to be more agresive and hostile towards different perspectives and points of view. Im actually a master at my craft. And i was hoping that web design wouldnt work the same way. unfortunatly i see it does. All creative arts are basically the same. So to make my application the way i want it is going to be alot harder then i thought. Because i see now that a mediocre design wont do. I cant just get an average design. I need a super pro and unique design like the pros make. And no doubt you dont just get lucky and make one of those. You have to spend years of practise. Why cant pro web designers do designs for 200 pounds?
  12. Ok when i read that you wanted my first impression, I stopped reading right away so i wouldnt be influended by what you said. Your website looks good! I will have to say. It still looks template and you can tell a pro didnt make it. But its good!
  13. wow thats amazing. Really like that design! I want to try and copy this design of yours for my own website i am making. Well something like this. You definatly gave me design ideas. 10/10 imo.
  14. I would say that its because you lack textures. Your site is all one colors. And it doesnt look very detailed. Tho saying that, its one of the best websites i have seen today! I like the colors and the pictures. Subjectivly i like it. I wouldnt say it looks super pro, but it has charecter to it.
  15. Yes very safe and beardy design. Imo this is totally passable. I would use this website and think nothing of it. The only thing i think is ameturish is that the nav jpeg looked garbled. It wasnt nice clean colours. Looks pixilated.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.