Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 17th, 2003, 07:19 AM
beeman81 beeman81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Jakobstad, Finland
Posts: 59 beeman81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
form for submitting name/e-mail --- for newsletter

Hello!

I'm trying to make a sign-up form for my newsletter, where the visitors can type their name, e-mail adress, and then click submit.

I tried to make one in HTML, but when I clicked submit, it opened my Outlook.

I'd like it to be "no hassle" for the user. That is, it should just send the info when they click submit.

Is this possible in HTML? If it is, how do I do it?

Thanks for your help!

Reply With Quote
  #2  
Old July 17th, 2003, 07:26 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 12288 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 48 sec
Reputation Power: 4
RE: form for submitting name/e-mail --- for newsletter

I assume you just put <form action='mailto:email@domain.com'>. That's a common mistake and it often opens an email program like Outlook. I suggest you change the action to 'sendmail.php' and then create a sendmail.php script which sends the email to you or even automatically adds the user to newsletter receiver list.

Reply With Quote
  #3  
Old July 17th, 2003, 07:42 AM
beeman81 beeman81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Jakobstad, Finland
Posts: 59 beeman81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: form for submitting name/e-mail --- for newsletter

Yes, that's what I did.

I'm really not a guru at PHP, and it seems nothing I've ever done in PHP has worked
(I think it has something to do with the settings...) :rolleyes:

I was thinking about making this a pop-under window. I know how to make a pop-under window, but I don't know how to make the code in PHP, or even where to put up my PHP-code on my web server...

By the way... you from Finland?

Reply With Quote
  #4  
Old July 17th, 2003, 07:53 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 12288 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 48 sec
Reputation Power: 4
RE: form for submitting name/e-mail --- for newsletter

Joo, kyllä olen. Enkä näköjään ainoa

Laitapas vähän koodia tänne, niin katsotaan voisinko auttaa.

Toivottavasti et ole ruotsinkielinen, että ymmärrät tämän...

(Others guess what that means.)

Reply With Quote
  #5  
Old July 17th, 2003, 07:58 AM
beeman81 beeman81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Jakobstad, Finland
Posts: 59 beeman81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: form for submitting name/e-mail --- for newsletter

No niin... Kyllä mä ymmärrän vähän suomea, mutta olen ruotsenkielinen Asun pietarsaaresta, mutta opiskelen Vaasasta (Vaasan ammattikorkeakoulu)...

Mä on asunut 2½ vuotta kaliforniassa, siksi mun suomi ei on niin hyvää...

Ok, I'm really not that good at finnish

Reply With Quote
  #6  
Old July 17th, 2003, 08:05 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 12288 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 48 sec
Reputation Power: 4
RE: form for submitting name/e-mail --- for newsletter

Men din finsk är bra tycker jag. Suomi sujuu sulla paremmin kuin joillain suomalaisilla ;)

But let's keep this forum English, ok? So please post some more information on your problem.

Reply With Quote
  #7  
Old July 17th, 2003, 08:10 AM
beeman81 beeman81 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Jakobstad, Finland
Posts: 59 beeman81 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: form for submitting name/e-mail --- for newsletter

Ok, till engelskan...

I want to make a pop-under window that shows a form which allows the visitor to enter their e-mail adress and name --- By clicking submit I'd either recieve an e-mail (preferrably), or it would write the info to a text-file.

Also, I'm not sure where to put it up on my web host.

I'll be going to the beach now.. Too nice weather to sit in!

Reply With Quote
  #8  
Old July 17th, 2003, 08:18 AM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 12288 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 50 m 48 sec
Reputation Power: 4
RE: form for submitting name/e-mail --- for newsletter

I usually don't write code for anyone but this time...

Your pop-under window should have the following code:

php Code:
Original - php Code
  1.  
  2. <?php
  3. if(!isset($submit))
  4. {
  5. ?>
  6. <form method='POST' action="<?php echo $PHP_SELF; ?>">
  7. <input name='namn' type=text><br><input name='ePostAddressen' type='text'><br><input type=submit name=submit value='skicka form'>
  8. <?php
  9. }else{
  10. $receiver = "your@address.here";
  11. $subject = "subject here";
  12. $msg = "Namn: $namnnAddresse: $ePostAddressen";
  13. mail($receiver, $subject, $msg);
  14. echo "Tack så mycket";
  15. }
  16. ?>

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > form for submitting name/e-mail --- for newsletter


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway