|
|
|
|
![]() ![]() |
Jan 18 2005, 09:49 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
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 |
|
|
|
Jan 18 2005, 10:21 PM
Post
#2
|
|
|
Sorry for not being active, Uni :( ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 933 Joined: 24-August 04 From: South Wales, UK Member No.: 892 |
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) |
|
|
|
Jan 20 2005, 06:45 PM
Post
#3
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
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 |
|
|
|
Jan 21 2005, 09:15 PM
Post
#4
|
|
|
Member [Level 2] ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 88 Joined: 12-January 05 Member No.: 3,246 |
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 |
|
|
|
Jan 22 2005, 03:18 AM
Post
#5
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 63 Joined: 6-August 04 Member No.: 688 |
< 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 |
|
|
|
Jan 22 2005, 04:10 AM
Post
#6
|
|
|
Moderator ![]() Group: [MODERATOR] Posts: 1,327 Joined: 26-December 04 From: Canada Member No.: 2,940 |
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! |
|
|
|
Jan 24 2005, 09:49 PM
Post
#7
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
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 |
|
|
|
Jan 24 2005, 10:00 PM
Post
#8
|
|
|
Sorry for not being active, Uni :( ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 933 Joined: 24-August 04 From: South Wales, UK Member No.: 892 |
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... |
|
|
|
Jan 24 2005, 10:33 PM
Post
#9
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 380 Joined: 22-December 04 From: usa Member No.: 2,873 |
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" |