Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Bridgetown Botanicals Shop: Bridgetown Botanicals

Jump to first unread post Pages: 1
Invisiblec0sm0nautt
Male User Gallery
Registered: 05/19/08
Posts: 10,303
Loc: The Astral Realm
Web Design/Dreamweaver Question
    #14093014 - 03/09/11 03:04 PM (12 years, 10 months ago)

I'm not sure if anyone will have the answer to this, but it's worth a shot. I'm working on creating a website for a business I'm starting this summer. I took most of the code from a website template I found online, and superimposed my own graphics and information in.

What I want to add is a web-form (right term?) - You know when your buying something online and you have the boxes to enter your information. I would then want the information submitted via the web-form to be emailed to my email. Is there any way I can use one of my websites email addresses to perform this task?

If anyone could point me in the right direction that would be appreciated. I'm a pretty big newb, but I'm learning quickly. :cool:


Extras: Filter Print Post Top
Invisiblemaggotz


Registered: 06/24/06
Posts: 7,539
Re: Web Design/Dreamweaver Question [Re: c0sm0nautt]
    #14093617 - 03/09/11 04:56 PM (12 years, 10 months ago)

yeah, of course you can. just write up a little form and a bit of php and you're done.

Code:
<form method="post" action="contact.php">
Email:<br> <input name="email" type="text"><br>
Message:<br> <textarea name="message" rows="15" cols="40"></textarea><br>
<input value="Submit" type="submit">
</form>


and contact.php
Code:
<?php 
$to = "your@email.com";
$subject = "Message";
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
if($sent) {print "received"; }
else {print "not received; }
?>


i think that should work, haven't done much website building though.


Extras: Filter Print Post Top
Invisiblefrith
God

Registered: 10/27/09
Posts: 7,512
Loc: Philadelphia, PA Flag
Re: Web Design/Dreamweaver Question [Re: c0sm0nautt]
    #14093624 - 03/09/11 04:58 PM (12 years, 10 months ago)

1. Make sure you are allowed to use the images you are using on that site. Stealing other people's work is not cool.

2. Dreamweaver is nice if you want super simple and aren't worried about the quality of the site.. it butchers HTML.

Personally, I'd suggest using a content management system (CMS) to do the design stuff. For the most part, you don't really have to mess with code at all and you get an insanely flexible site. You're able to add and remove content very easily.. no fumbling around with FTP clients to change something. You do it all in the browser.

Wordpress and Drupal are both quite popular.

Wordpress is easier but Drupal (my preference) is more flexible.


--------------------


Extras: Filter Print Post Top
Invisibledaytripper05
Psychonaut
Male User Gallery


Folding@home Statistics
Registered: 10/30/06
Posts: 6,962
Loc: In my garden
Re: Web Design/Dreamweaver Question [Re: maggotz]
    #14107873 - 03/12/11 08:33 AM (12 years, 10 months ago)

Quote:

maggotz said:
yeah, of course you can. just write up a little form and a bit of php and you're done.

Code:
<form method="post" action="contact.php">
Email:<br> <input name="email" type="text"><br>
Message:<br> <textarea name="message" rows="15" cols="40"></textarea><br>
<input value="Submit" type="submit">
</form>


and contact.php
Code:
<?php 
$to = "your@email.com";
$subject = "Message";
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
if($sent) {print "received"; }
else {print "not received; }
?>


i think that should work, haven't done much website building though.




I don't think this will work, you would use the $_POST variable instead of the $_REQUEST variable. And the mail() function requires that Sendmail or some other smtp server is setup on the hosting machine which is sometimes not possible. I have spent a lot time getting servers to send email properly, and I mean a lot of time. PHPmailer is a good class that provides a lot of functionality out of the box for sending emails with limited server configurations. PHPMailer was probably the simplest way for me to send emails the first time I did it (I setup my own development servers too and smtp can be a bitch).


I prefer wordpress to drupal, which I think is a piece of shit. A cms should't be used to design a site, but merely update the content without changing and code. The design process is done with HTML and CSS, no way around it. The sites created using "tools" are done so because of a developer's true lack of undserstanding the languages. A static version of the design should always be made before making a dynamic one. Once the static templates are made, you can plug them into the cms of your choice.

Good luck with IE!


Extras: Filter Print Post Top
Jump to top Pages: 1

Bridgetown Botanicals Shop: Bridgetown Botanicals


Similar ThreadsPosterViewsRepliesLast post
* Free web designer like Dreamweaver ?? Gypsy Boy 660 8 02/18/18 06:51 AM
by Gypsy Boy
* Dreamweaver Drop Down Menu Question AaronEvil 780 1 04/04/07 04:42 AM
by Seuss
* Boards and cpus question
( 1 2 all )
Demiurge 3,304 22 08/23/03 10:59 AM
by fIsh in my head
* Anyone Use Wordpress, Nucleus Or B2evolution? kotik 658 3 04/10/06 06:44 PM
by kotik
* Designing Codes, Possible to make undecipherable?
( 1 2 all )
HagbardCeline 4,182 20 08/31/03 07:49 PM
by Mal_Fenderson
* Lana? A question concerning security/basic law. anonymoushate 1,287 3 05/24/02 05:38 AM
by Lana
* Computer volume question superpimp 870 4 08/08/03 10:21 PM
by wingnutx
* URGENT: I need some help to find New Web-Host Natura 1,365 8 06/16/03 05:33 PM
by Natura

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: trendal, automan, Northerner
600 topic views. 0 members, 1 guests and 1 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.024 seconds spending 0.007 seconds on 14 queries.