![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Mentor, Articles Team
|
Just two questions
I'm in the process of building a website, for my hobby, aviation photography. I've hit some snags though. I want to be able to have a comments and critisms page, where people can contact me via a form and click a button and their comment be emailed to me. I cant for the life of me remember how to code for this. I thought of using the mailto tag, but i want it to work, without using a mail client, almost so users dont see this bit, it looks like it just submits!
Secondly, as its a website for photography, i want users to be able to make it possible for users to upload photos. To save on space on my freewebs account, i want it setup like above, i capture the file location, and attach it to an email, and then email those photos to me. Anyone know how to do this. I can do the users only bit, i've got a login section. Cheers
__________________
"Freedom of thought is best promoted by the gradual illumination of men's minds, which follows from the advance of science" - Darwin Join the TSF folding team - Team 85015 Last edited by TheAtheist; 09-16-2007 at 10:26 AM. Reason: clarification |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Moderator, TSF Articles
|
Re: Just two questions
I think a PHP script will work fine for the mail comments and criticism page. How about a page such as a guestbook where others can see who wrote what etc??
I have a uploader script that you can use, I just need to write instructions for it then its getting posted in this programming section for all to use. |
|
|
|
|
|
#3 (permalink) |
|
Mentor, Articles Team
|
Re: Just two questions
Thanks carsey, but i dont want the comments posted, its a system whereby people can email me, but it looks easier to use than just simply going to hotmail for example and sending an email. I have a comments script already in use for people to write comments about the photos.
On that uploader script, is that the PHP one?, as i dont want it uploading directly, i want it emailed to me so i can crop it, etc to add it to the photo album on my site. Cheers
__________________
"Freedom of thought is best promoted by the gradual illumination of men's minds, which follows from the advance of science" - Darwin Join the TSF folding team - Team 85015 |
|
|
|
|
|
#4 (permalink) |
|
Moderator, TSF Articles
|
Re: Just two questions
Yes, its a PHP script, but I dont know whether there is anything Ive heard of that it will email it directly to you. I think you would be relying on people to do it through a email based program.
You could modify the script so that it uploads to a folder only viewable via password or have no 'public' permissions. This wont allow people to see the pictures inside, but you will be able to access it through FTP or your file manager. |
|
|
|
|
|
#5 (permalink) |
|
Mentor, Articles Team
|
Re: Just two questions
K, thanks carsey, i'll try that. Just hope it works. I'll get back to you on that. any further ideas on the email thingy for the comments? Cheers
__________________
"Freedom of thought is best promoted by the gradual illumination of men's minds, which follows from the advance of science" - Darwin Join the TSF folding team - Team 85015 |
|
|
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Aug 2005
Location: Ohio
Posts: 207
OS: VISTA
|
Re: Just two questions
I would not sugest using some one elses script you never know what they have there code doing they may be having the emails sent to them to sell for spam, fortunitly email scripts are easy. Also The Mailto method will send the email adress and the subject but not the information, and it is verry unsecure so heres how to make a php script for it.
Step 1: Make sure your host supports SMTP Wich is the protocal to send mail. Also make sure it supports PHP. Step 2 write the PHP driver: Name the file: sendmail.PHP <-- Make sure to spell that name exacly how it is here and use .PHP not .php because thats how it is named in the HTML) Note: change the recipiand address (yourmail@yourdomain.com) to your email adress change the header (Your URL) to the url of the page you want it to send them to when they send it. Code:
<?
$email = $_REQUEST['email'];
$message = $_REQUEST['message'];
mail( "yourmail@yourdomain.com", "Feedback Form Results",
$message, "From: $email");
header( "Location: Your URL ");
?>
Save this as whatever you like but make sure to make it .HTML (coments.HTML) Code:
<Form method="post" action="sendmail.PHP"> Email: <input name="email" type="text" /> <br /> Message:<br /> <textarea name="message" rows="15" cols="40"> </textarea> <br /> <input type="submit" value="submit"><br /> </form> Last edited by Damion; 09-16-2007 at 12:33 PM. |
|
|
|
|
|
#8 (permalink) |
|
Mentor, Articles Team
|
Re: Just two questions
Thanks Damion, but carseys code looks like what i need and is all sorted for me. cheers Carsey
__________________
"Freedom of thought is best promoted by the gradual illumination of men's minds, which follows from the advance of science" - Darwin Join the TSF folding team - Team 85015 |
|
|
|
|
|
#9 (permalink) |
|
Mentor, Articles Team
|
Re: Just two questions
Carsey, really appreciate your time on this one as i know i'm being a bit demanding, but i uploaded the upload(!) script to my website and when i click on it all i see is the code within it, not the page. Am i doing anything wrong, or will my freewebs not cope with it? My only idea on how to fix it, is to take the code from the .php file and put it into a .html file on my site, will this work?
BTW, the comment think implemented correctly, dunno if it works yet, need to have my account 7 days to find out. But nothing looks out of place with it
__________________
"Freedom of thought is best promoted by the gradual illumination of men's minds, which follows from the advance of science" - Darwin Join the TSF folding team - Team 85015 |
|
|
|
|
|
#10 (permalink) |
|
Moderator, TSF Articles
|
Re: Just two questions
I dont know. Does freewebs allow PHP scripting, or any scripting??
It may pay, for future expansion, to get a free webhost and upload your site from there. It would probably mean starting again, unless you could copy the HTML source code from freewebs to the webhost. |
|
|
|
|
|
#11 (permalink) |
|
Mentor, Articles Team
|
Re: Just two questions
Accept my deepest apologies, freewebs doesnt accept php, and as this is a hobby TBH i am not prepared to pay or move my site. So i'll just have to ask people to email me!
__________________
"Freedom of thought is best promoted by the gradual illumination of men's minds, which follows from the advance of science" - Darwin Join the TSF folding team - Team 85015 |
|
|
|
|
|
#13 (permalink) |
|
Folding Along
|
Re: Just two questions
You could check out Bravenet.com
They have a lot of free web support services and very strict guidelines about what can and can't be done via their service. You don't have to host with them to use the web support services. They do ask you to add a discrete link to your website, but don't require it.
__________________
I am not a computer professional, My advice comes from personal experience and/or friends who are computer professionals. Learn By Doing Un-versity Interested in Search and Rescue? Check out the Civil Air Patrol. Come Fold with us. TSF Folding@Home Team |
|
|
|
![]() |
| Thread Tools | |
|
|