Jump to content


Photo

Need To Upgrade Webstie: Need Drop Down Boxes


  • Please log in to reply
25 replies to this topic

#16 Sylvia

Sylvia

    Leatherworker.net Regular

  • Members
  • PipPipPipPip
  • 1,842 posts
  • Gender:Not Telling
  • How did you find leatherworker.net?:Google

Posted 09 January 2012 - 09:27 PM

Bravo for your generosity, USGun.

I'm in a giving mood!
The html for your page


<form action="make-order.php" method="post" id="order-frm" name="order-frm">
Your name <input type="text" name="user-name" id="user-name" /><br />
Your email address <input type="text" name="email" id="email" /><br />
Thread color: <select name="thread-color">
  				<option value="white">White</option>
                <option value="brown">Brown</option>
     				<option value="black">Black</option>
  			</select><br />              
Leather color: <select name="leather-color">
  				<option value="natural">Natural</option>
                <option value="brown">Brown</option>
     				<option value="black">Black</option>
  			</select><br />              
Left/Right hand <select name="hand">
				<option value="right">Right</option>
  				<option value="left">Left</option>
  			</select><br />              
<input type="submit" name="sub-bttn" id="sub-bttn" value="Send order" />
</form>


The php to process the data and send an email (save this code as make-order.php).

<?php 
// Script to accept form values and mail to yourself.
// By US GUNLEATHER - 01.09.2012

// Site vars (edit these to suit your needs)
$site_url = "Your site url"; // no www's or http's (ex. mycoolsite.com)

// Where should this order be sent to?
$recipient = "youremail@soemthing.com";

// Subject for the mail
$mailsubject = "An order has been placed!";

// This is the page you'll send users to after the form is submitted
$success = "thankyou.htm";

// Form vars
$user_name = $_POST['user-name'];
$email = $_POST['email'];
$thread = $_POST['thread-color'];
$leather = $_POST['leather-color'];
$hand = $_POST['hand'];
$today = date('l dS \of F Y h:i:s A');
// Mail headers
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers. = "From: ".$email." \r\n";
$headers .= "Reply-To: " . $email . "\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();

// Build mail message
$mail_body = "Order from: " . $user_name . " (". $email .") \r\n".
  			"Leather: " . $leather . "<br />" . 
  			"Thread: " . $thread . "<br />" .
  			"Hand: " . $hand . "<br /> \r\n" .
  			"********************************* \r\n" . 
  			"Order placed on " . $today;

// fire mail function and redirect on success
if(mail($recipient, $mailsubject, $mail_body, $headers) or die("Couldn't mail it out")){
	header("location: ". $success);	
}

?>


I can't test this at the moment, but I think it should work. Let me know if it needs tweaking.
:cheers:


A teacher pointed at me with a ruler and said "At the end of this ruler is an idiot." I got detention when I asked "Which end?"

#17 RMB Custom Leather

RMB Custom Leather

    Member

  • Contributing Member
  • PipPip
  • 453 posts
  • Gender:Male
  • Location:Oakboro, NC
  • Leatherwork Specialty:Knife cases & Gun leather
  • Interested in learning about:More projects
  • How did you find leatherworker.net?:Google search

Posted 10 January 2012 - 06:13 AM

Well it turns out that what had opened was just a wordpress free blog from wordpress.com were I needed to go was wordpress.org I think anyway. After researching the pros / cons of Concrete 5 and wordpress I think I am going with the Concrete5.

Has any used Bluehost? for hosting before they look like a good deal and responded to their live chat pretty well. I may repost a poll on this just to see who most are using, Concrete5 recommends some but wonder who has the best deal for the money.

Edited by RMB Custom Leather, 10 January 2012 - 06:14 AM.

Thank you,

 

Rob Bennett

 

Email: rob@rmbcl.com

snallbluegunbanner.png

Authorized Distributor

BLUEGUNS

Multi Molds

Maker Supplies 

Home of the "Taco Press" kydex/Leather former

 

FREE SHIPPING!

 

FACEBOOK


#18 particle

particle

    Leatherworker.net Regular

  • Members
  • PipPipPipPip
  • 1,264 posts
  • Gender:Male
  • Location:Aubrey, TX
  • Leatherwork Specialty:Holsters
  • Interested in learning about:Making holsters better!
  • How did you find leatherworker.net?:Google

Posted 10 January 2012 - 07:22 AM

I've used bluehost for years and have been happy with them.

#19 dickf

dickf

    Member

  • Members
  • PipPip
  • 441 posts
  • Gender:Male
  • Location:Northern Kentucky / Greater Cincinnati
  • Interested in learning about:holsters
  • How did you find leatherworker.net?:google

Posted 10 January 2012 - 09:37 AM

Bravo for your generosity, USGun.



Thanks, I didn't think anyone noticed. :P

RMB, is this your site? http://www.allaboutpocketknives.com
If so, add a domain to your hosting package that's already set up.

FWIW, I've used 1and1.com for years with no issues or surprises.

#20 Sylvia

Sylvia

    Leatherworker.net Regular

  • Members
  • PipPipPipPip
  • 1,842 posts
  • Gender:Not Telling
  • How did you find leatherworker.net?:Google

Posted 10 January 2012 - 12:52 PM

Thanks, I didn't think anyone noticed. :P

RMB, is this your site? http://www.allaboutpocketknives.com
If so, add a domain to your hosting package that's already set up.

FWIW, I've used 1and1.com for years with no issues or surprises.


I always try to acknowledge good people and random acts of kindness when ever I see it in action..... especially when it occurs online. :)

RMB's site is in his signature line. www.rmbcustomleather.com

I think that is the one he wants to fix up. Though, it sounds as if he's looking at other options at the moment.

Sylvia
A teacher pointed at me with a ruler and said "At the end of this ruler is an idiot." I got detention when I asked "Which end?"

#21 dickf

dickf

    Member

  • Members
  • PipPip
  • 441 posts
  • Gender:Male
  • Location:Northern Kentucky / Greater Cincinnati
  • Interested in learning about:holsters
  • How did you find leatherworker.net?:google

Posted 10 January 2012 - 01:14 PM

His domain points here: http://www.allaboutp...lay_home_page=y

I understand wanting to go with a cms - most of the popular ones are mature enough to handle most people's needs, anyway. They're also dead-easy to set up. The only real conflict with them is when you want to start incorporating truly custom content/code, and have to start altering system templates. Even then, it's still not a big deal.

Enjoy!

#22 CitizenKate

CitizenKate

    Database Diva

  • Moderator
  • PipPipPipPip
  • 2,563 posts
  • Gender:Female
  • Location:Kansas Flinthills
  • Leatherwork Specialty:Game boards, accessories, furniture

Posted 10 January 2012 - 03:09 PM

I understand wanting to go with a cms - most of the popular ones are mature enough to handle most people's needs, anyway. They're also dead-easy to set up. The only real conflict with them is when you want to start incorporating truly custom content/code, and have to start altering system templates.

I understand what you're saying, but that is not the case with Concrete5. It employs a very well thought-out architecture, which provides for overriding the core with your own custom code without actually touching any of the core source. I've done an assortment of customizations for it, and have yet to have one trashed by system upgrades. Same also with the theme system.

I use it to build a lot of sites because most of my clients prefer to maintain their own content, and a cms makes it easy for them to work with the content without having to mess with the page layouts. For people not accustomed to working with html, css, scripting languages, or ftp, that can become very messy. There are also advantages for guys like you who are highly expert at all that stuff - you can spend less of your time doing content maintenance on your clients' sites and more time doing the really cool stuff. You should check it out. :-)


Kate

#23 RMB Custom Leather

RMB Custom Leather

    Member

  • Contributing Member
  • PipPip
  • 453 posts
  • Gender:Male
  • Location:Oakboro, NC
  • Leatherwork Specialty:Knife cases & Gun leather
  • Interested in learning about:More projects
  • How did you find leatherworker.net?:Google search

Posted 10 January 2012 - 06:11 PM

Thanks for everyone’s help! I have 3 domain names that point to that page US posted the link to. I like the looks of the site but want more control over it than I have now. I am trying to decide between Concrete 5 and WordPress now since talking to another web designer I know from one of my gun forums.

Ian Smith 317-489-0072 is who I talked to and he swears by WordPress because of the amount of free plug-ins, themes, and other stuff I don't understand that are available. He said it was ok to share his contact information if anyone would like a site since Kate’s covered up right now.


Thank you,

 

Rob Bennett

 

Email: rob@rmbcl.com

snallbluegunbanner.png

Authorized Distributor

BLUEGUNS

Multi Molds

Maker Supplies 

Home of the "Taco Press" kydex/Leather former

 

FREE SHIPPING!

 

FACEBOOK


#24 Randy Cornelius

Randy Cornelius

    Leatherworker

  • Members
  • PipPipPip
  • 794 posts
  • Gender:Male
  • Location:LaCygne, Kansas
  • Interests:I do all kinds of leather work. Saddles, tack, personal items belts, gun leather, you name it, and I can make a buck I'll do it in leather.
  • Leatherwork Specialty:Saddles & Tack

Posted 11 January 2012 - 08:29 AM

I had the same problem, finding someone who was reliable, would return phone calls or I could afford. I finally went to my local high school who has classes on web design and who look for work for the students. I have been with them for over a year now and are very pleased. Quick service, affordable and I own the rights to everything. So I would suggest contacting you local high school IT teacher.
Randy
Randy Cornelius
Cornelius Saddlery
LaCygne, Kansas
Randy & Riley Cornelius
Ride Hard, Shoot Fast and Always Tell the Truth...

#25 RMB Custom Leather

RMB Custom Leather

    Member

  • Contributing Member
  • PipPip
  • 453 posts
  • Gender:Male
  • Location:Oakboro, NC
  • Leatherwork Specialty:Knife cases & Gun leather
  • Interested in learning about:More projects
  • How did you find leatherworker.net?:Google search

Posted 11 January 2012 - 11:46 AM

I had the same problem, finding someone who was reliable, would return phone calls or I could afford. I finally went to my local high school who has classes on web design and who look for work for the students. I have been with them for over a year now and are very pleased. Quick service, affordable and I own the rights to everything. So I would suggest contacting you local high school IT teacher.
Randy


That is a good idea or even a local community college would work around here.

Thank you,

 

Rob Bennett

 

Email: rob@rmbcl.com

snallbluegunbanner.png

Authorized Distributor

BLUEGUNS

Multi Molds

Maker Supplies 

Home of the "Taco Press" kydex/Leather former

 

FREE SHIPPING!

 

FACEBOOK


#26 Sylvia

Sylvia

    Leatherworker.net Regular

  • Members
  • PipPipPipPip
  • 1,842 posts
  • Gender:Not Telling
  • How did you find leatherworker.net?:Google

Posted 11 January 2012 - 10:39 PM

I had the same problem, finding someone who was reliable, would return phone calls or I could afford. I finally went to my local high school who has classes on web design and who look for work for the students. I have been with them for over a year now and are very pleased. Quick service, affordable and I own the rights to everything. So I would suggest contacting you local high school IT teacher.
Randy


Excellent Idea. I had forgotten about using schools for services such as this. I used to get my mechanical work done at the local Community College. for parts and $25 fee way back when.
A teacher pointed at me with a ruler and said "At the end of this ruler is an idiot." I got detention when I asked "Which end?"





Similar Topics Collapse

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users