|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
Post
#1
Jan 18 2005, 09:49 PM
Hi guys, Am new to designing. How do I : 1) include a popup form on my webpage for the visitor to input info & have the info forwarded to my personal e-mail account (not trap17). 2) make links to download files (ie. zip etc.) hosted on my website for ftp direct download to the visitors computer. (You know, click a link & the file automatically downloads) Any info appreciated !!! Tutorials ????????????????? Step by step info ???????????? Thanks in advance RGPHNX |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#2
Jan 18 2005, 10:21 PM
For a Contact form, go here: http://www.trap17.com/forums/trap17-file-no-4780.html LINKS: just make a normal link to the file CODE <a href="file.zip">link</a> POP-UP: will get back to you, I g2g now, good night all! (10:38PM) |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
Post
#3
Jan 20 2005, 06:45 PM
Thanks Cragllo, Thanks for the fast code & the link to other Php info. Checked out the links and found some good Php tutorials at www. Php.net . Also check out the links section at www. Php.net/links.php for everything Php. Found some e-mail forwarding code downloads and a good customization tutorial at www.analysisandsolutions.com . No info on how to make the e-mail form a "popup" though. Any ideas ???? Also, Am still looking for a fast "how to" implement part 2) [ie. automatic downloader for "zip" etc. files hosted on my website] of my previous question. Any suggestions?? Anybody? Thanks in advance. RGPHNX |
![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 88 Joined: 12-January 05 Member No.: 3,246 |
Post
#4
Jan 21 2005, 09:15 PM
QUOTE(RGPHNX @ Jan 18 2005, 10:49 PM) 1) include a popup form on my webpage for the visitor to input info & have the info forwarded to my personal e-mail account (not trap17). For the pop-up you need Javascript |
![]() ![]() ![]() ![]() Group: Members
Posts: 63 Joined: 6-August 04 Member No.: 688 |
Post
#5
Jan 22 2005, 03:18 AM
< SCRIPT LANGUAGE="JavaScript"> window.open("enter link here"); </SCRIPT> this should give you a popup that links to a page <script> var popunder=new Array() popunder[0]=" Enter Link Here" var winfeatures="width=100,height=100,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0" var once_per_session=0 ///No editing beyond here required///// function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == 400) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; } function loadornot(){ if (get_cookie('popunder')==''){ loadpopunder() document.cookie="popunder=yes" } } function loadpopunder(){ win2=window.open(popunder[Math.floor(Math.random()*(popunder.length))],"",winfeatures) win2.blur() window.focus() } if (once_per_session==0) loadpopunder() else loadornot() </script> that sould give you a pop under with a link i hop that has help in at least the slightest bit |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#6
Jan 22 2005, 04:10 AM
Wow! you are very good at javascript! I'm not too shabby either: <script language="javascript"> function p() { window.open('http://google.com', 'bnettaf','width=222,height=222,top=2,left=2,toolbars=no,resizable=0');} </script> And to excute the site you just link to "javascript: p();" For example: <a href="javascript: p();">click here</a> Notes: Width is the width of the window Height is the height of the window Top is the position from the top Left is postition from the left Toolbars is if toolbars should be displayed Resizable is the ability to resize! 0 means no, 1 means yes. Oh yah, this whole thing is supposed to open a browser window if you didn't notice! ~Johnny Have a great day! Hope this helped! |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
Post
#7
Jan 24 2005, 09:49 PM
Thanks to all, Followup Question: Once I create the popup window & link it via url to the content webpage, How do I make the webpage send the info to my e-mail account? This may seem obvious to youall but I'm totally new to this sort of thing. I guess what I'm asking is-Where & How do I put the link to my e-mail account url in the webpage? Thanks again, RGPHNX |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Post
#8
Jan 24 2005, 10:00 PM
Use the code that Dooga gave: CODE <script language="javascript"> function p() { window.open('contact.php', 'bnettaf','width=222,height=222,top=2,left=2,toolbars=no,resizable=0');} </script> <a href="javascript: p();">click here</a> Make a file calles contact.php and use the contact form here: http://www.trap17.com/forums/trap17-file-no-4780.html that should do it... |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
Post
#9
Jan 24 2005, 10:33 PM
Thanks Again Cragllo, Looks like I have all the pieces of scripting to make it all work. Will merge it all together and get back to youall if there are any more problems. Thanks again RGPHNX ps-SORRY I MUST HAVE SPACED OUT ON THE ZIP ADVICE YOU GAVE PREVIOUSLY - must have been the "forest for the trees syndrome" |
![]() ![]() Group: Members
Posts: 32 Joined: 30-January 05 Member No.: 3,494 |
Post
#10
Jan 31 2005, 05:01 AM
From my understanding, it seems the user don't care if an e-mail is sent. It's just an implementation detail for developers. My suggestion is: 1 The user fill a form in your web page, then submit 2 php or jsp on the server collect all the information. Then call system api to send a mail with these information. You can search the mail() on www.php.net or JavaMail API on java.sun.com Server technology is better than client technology for your requirement. QUOTE(RGPHNX @ Jan 24 2005, 04:49 PM) Thanks to all,
Followup Question: Once I create the popup window & link it via url to the content webpage, How do I make the webpage send the info to my e-mail account? This may seem obvious to youall but I'm totally new to this sort of thing. I guess what I'm asking is-Where & How do I put the link to my e-mail account url in the webpage? Thanks again, RGPHNX [right][snapback]43059[/snapback][/right] |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | ||
|---|---|---|---|---|---|---|
![]() |
9 | noxit | 852 | 21st June 2004 - 08:16 PM Last post by: wassie |
||
![]() |
22 | -iancovenant- | 1,106 | 9th December 2008 - 06:40 PM Last post by: Echo_of_thunder |
||
![]() |
21 | Dagoth Nereviar | 1,302 | 11th November 2008 - 03:27 AM Last post by: Ruben |
||
![]() |
6 | rpgsearcherz | 328 | 8th December 2008 - 12:23 PM Last post by: minimcmonkey |
||
![]() |
3 | Thunder | 525 | 28th July 2004 - 02:35 AM Last post by: killer |
||
![]() |
12 | EricDrinkard | 1,617 | 6th August 2004 - 09:29 PM Last post by: Vacant |
||
![]() |
15 | EricDrinkard | 1,155 | 1st August 2004 - 09:31 PM Last post by: pr3dr49 |
||
![]() |
0 | andyy15 | 495 | 29th July 2004 - 03:59 PM Last post by: andyy15 |
||
![]() |
1 | Jarek_Gd | 243 | 24th February 2008 - 12:49 PM Last post by: rvalkass |
||
![]() |
21 | PnOyKiO | 2,168 | 12th September 2004 - 11:04 AM Last post by: dreek |
||
![]() |
15 | Dehornos | 1,611 | 2nd January 2009 - 09:04 AM Last post by: contactskn |
||
![]() |
11 | sonesay | 744 | 12th February 2008 - 07:42 PM Last post by: sonesay |
||
![]() |
19 | Vacant | 1,458 | 26th September 2004 - 10:13 AM Last post by: gotcha41 |
||
![]() |
8 | djleli | 775 | 28th February 2005 - 04:29 PM Last post by: bjrn |
||
![]() |
17 | odomike | 1,236 | 27th August 2004 - 06:31 AM |