Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-24-2006, 08:33 AM   #31
In Runtime
 
jamieoliver22's Avatar
 
Join Date: Apr 2004
Posts: 245
Default Re: action=mailto:

But he needs to have a mySQL database to start with. And if he can't do PHP, I really doubt he will be able to code PHP to connect to a database.

That simple email script will suit him fine for what he needs it for.
__________________

__________________
Desktop: AMD Athlon XP 2000+ - 1.6ghz | MSI KT4-Ultra Motherboard |ATI Radeon Powercolor x850 XT 256mb DDR3 | 400gb HDD space |1gb PC2700 DDR SDRAM.
---
Laptop: AMD Sempron 3200+ - 1.6ghz | ATI Radeon Xpress 1100 - 128mb | 100gb PATA HDD | 1gb DDR2 RAM.
jamieoliver22 is offline   Reply With Quote
Old 12-24-2006, 12:27 PM   #32
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: action=mailto:

I know that. Which is why i am hosting it for him, inclusive of a mySQL DB Oh, and captain, i dont think i can see what is beeing sent to me, and i am not going to try
__________________

j03 is offline   Reply With Quote
Old 12-24-2006, 01:51 PM   #33
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: action=mailto:

so in other words, you will have all the old people stuff I get? - Phone #, Address./..

and - I tried hosting it on yahoo brief case, wont work. Ive tried hosting it on my friends UTD ( Dallas) server, wont work. When I host it on the utd server I get my coding on my page, and I dont know whats wrong.

Also, when I downloaded the files off of your site, they saved at .htm I know they're suposed to be .php so I changed them back, thats when it wouldnt work, and we also tried them as .htm and no file extention at all.. it still wont work

Thanks
-Q
qqsnare.googlepages.com to take a look... the application, or Contact Me mart.. whatever
Captain Pooka is offline   Reply With Quote
Old 12-24-2006, 07:08 PM   #34
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: action=mailto:

OK - This is a but complecated, but i will do my best. PHP does not let people view the code fo the file, if its been uploaded to a Server with PHP on it. When you accsess a page which is made with PHP, The PHP part of the server turns it into HTML, for the client. Its a bit like not being able to edit programs, without having the source. Also, No. I cannot see what is being sent. And even if i could, i am 13. What would i do with it? Oh, and by the way. Merry Sexmas!
j03 is offline   Reply With Quote
Old 12-27-2006, 01:54 AM   #35
Daemon Poster
 
Captain Pooka's Avatar
 
Join Date: Oct 2006
Posts: 1,108
Default Re: action=mailto:

lol your 13.. you must have been playing around on here alot.. good job! and thanks
Captain Pooka is offline   Reply With Quote
Old 12-27-2006, 10:41 AM   #36
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: action=mailto:

Lol. Yeah. I am an ubergeek for my age :P
j03 is offline   Reply With Quote
Old 02-17-2007, 07:11 AM   #37
BSOD
 
hamidonline's Avatar
 
Join Date: Jan 2007
Posts: 48
Default Re: action=mailto:

why don't you use ASP?
in ASP you can send email to your email without outlook it sends the message to your email
see this page
http://www.hamid-online.com/comment/
it automatically sends your comment to my email
it doesn't matter that you are 13 or more because i am 14 and i created more than 5 websites since i learned web programing
hamidonline is offline   Reply With Quote
Old 07-09-2008, 10:38 AM   #38
Solid State Member
 
Join Date: Jul 2008
Posts: 6
Default Re: action=mailto:

yes without goin to another site to use there cgi script you must use the mailform but there are free website that allow you to use there scripts as long if you are willing to put a link back to them at the bottom of the form.
component is offline   Reply With Quote
Old 07-11-2008, 06:51 PM   #39
In Runtime
 
Join Date: Dec 2007
Posts: 195
Default Re: action=mailto:

This can be done using PHP. However, it will ask for their e-mail address, but it won't actually use their SMTP server, it'll use yours.

So, they could lie and give you a fake e-mail address (unless you do some sort of validation such as a link sent to the e-mail).
PHP Code:
            if($action == 'contact'){
            
//display the contact form
            
$sent $_POST['sent'];
            
$from $_POST['email'];
if(
$sent == 'yes'){
$to      '******@gmail.com ';
$subject $_POST['subject'];
$message $_POST['message'];
$type $_POST['type'];
$message wordwrap($message70);
$message"The following E-Mail has been sent to you from index.php?action=contact
                        From:
$from
                        Category:
$type
                        Message:
                        
$message
                                                
                        
                        
                        Sincerely,
                        Localspad.com
                        "
;
$message nl2br("$message");
$headers 'From: contact@localspad.com' "\r\n" .
    
'Reply-To: noreply@localspad.com' "\r\n" .
    
'X-Mailer: PHP/' phpversion();

mail($to$subject$message$headers);
echo 
"<P>Mail was sent.</P>";
}
else{
echo 
"
<table>
<form name='contact' METHOD=POST ACTION='index.php?action=contact'>
<tr>
<td colspan=4><center>Contact Form</center>
<tr>
<td>E-Mail: 
<td><input type=TEXT name='email'><input type=HIDDEN name='sent' value='yes'>
<td>Category: 
<td><SELECT NAME='type'>
    <OPTION value='default' SELECTED>SELECT ONE:
    <OPTION value='tech support'>Tech Support
    <OPTION value='Report Infraction'>Report Infractions
    <OPTION value'Report Bugs'>Report Bugs
    </SELECT>
<tr><td>Message:<td colspan=4><textarea name='message' cols=40 rows=9></textarea>
<tr><td colspan=4><a style='float: right;' href='javascript: void(0);' onclick='document.contact.submit();return false;'>Submit E-Mail</a>
</form></table>
"
;
}

            } 
colorblindjimbo is offline   Reply With Quote
Old 07-11-2008, 07:37 PM   #40
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: action=mailto:

Quote:
Originally Posted by component View Post
yes without goin to another site to use there cgi script you must use the mailform but there are free website that allow you to use there scripts as long if you are willing to put a link back to them at the bottom of the form.

Component General Inc.
Old Thread! :@
__________________

j03 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 03:55 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0