HTML - How To Redirect To A Different Site With A Message
Hi all, I got a unique issue. I would like to redirect from one site (which is obsolete and the owner no longer wishes to use) to the updated one. I know that PHP has a redirect function, but instead of just redirecting and not giving a heads up of what is happening, I would like to display a message to the user indicating that the current site is no longer used and that the new one is where all the new/updated stuff is located.
Sorry if this is a wrong place to post, but this is a pretty broad problem from my perspective. Is there something that I can do only in pure HTML? Would I need to use JavaScript (which I don't know jack about)? Can I just use a scripting language like PHP? Similar TutorialsHow to redirect to WEB B when open WEB A? Hello, I'm a windows app programmer, but don't know too much about HTML. I use Frontpage to maintain my web site. I need to check the referring page, and if it equals what I want, then I need to redirect to another page. OK, to explain further, I've had a web site for years. Lets call it www.p.com. Yesterday, I registered two new domain names, we'll call them www.a.com and www.b.com. I had my web host simply make them pointers directly to www.p.com. So, when users type in www.a.com or www.b.com, they are automatically taken to www.p.com. This is OK...but, it is causing some issues. What I'd like to do is, when the page (www.p.com) is loaded, I want the page to check the page the user came from, such as www.a.com. If it was www.a.com or www.b.com, then I want to re-load www.p.com, so that the page is refreshed so that it actually was www.p.com and not a re-direct from www.a.com. Can I do this? and how can this be done? Many thanks in advance! domls I am wondering if it is possible to create an INDEX.HTML to redirect to another website? I would like it to display the redirected site, but if possible keep to the original address.. e.g. A site named www.mysite.com, with an INDEX.HTML to redirect to www.othersite.com, which displays OTHERSITE with www.mysite.com in the address bar. Hope I explained ok, any responce would be much appricated! Thanks! I want to add to none of my questions and I cannot find the way to do it. Todd Hi Guys, Has anyone got an idea how to insert a password name onto a page.html I have ht passwords setup and i would like to have the user name come up when they visit the page. ie username = Bob ...password = xyz etc Page show Hi Bob or welcome Bob. There must be a way i would imagine. Any input very welcome How can I make it so a user can't resize a message box in safari? It messes with my site layout if it is changed. I'm using a php video-sharing site script where you would make a purchase to view a video. The code below is from the html search results page, where a list of thumbnails appears when you search certain keywords. Currently when you select the thumbnail, to view the video, prior to paying, a page pops-up in a pop-up box(inner_purchase.htm page) showing a message. I asked someone (JG) to help me change it to just a pop-up message box to appear, rather than the inner_purchase page, and he added code below called Custom Message Block, but the inner_purchase page still appears, instead of the Custom Message Block. Can you help me figure out how I can make this so the Custom Message Block appears, rather than the inner_purchase page? Thanks. Any help or suggestions will be appreciated. Code: <!--Begin Left Column--> <div id="column-left-2"> <br /> <!--Begin Whats Showing Menu--> <div class="header-narrow"><h3>[var.get_type]</h3></div> <div class="whats-showing"> <ul> <li><!--<a href="[var.url_link]/load/featured">[var.lang_featured]</a>--></li> <li><!--<a href="[var.url_link]/load/viewed">[var.lang_most_viewed]</a>--></li> <li><!--<a href="[var.url_link]/load/recent">[var.lang_most_recent]</a>--></li> <li><!--<a href="[var.url_link]/load/comments">[var.lang_most_comments]</a>--></li> </ul> </div> <div class="container-narrow-bottom"></div><!--End Whats Showing Menu--> <br /> <!--Begin Popular Tag Cloud populate from search type ??--> <!--<div class="header-narrow"><h3>[var.lang_Tags_most_popular]</h3></div>--> <!--<div class="whats-showing"><!--[var.tag_cloud_block;htmlconv=no;comm]--></div>--> <!--<div class="container-narrow-bottom"></div>--><!--End Popular Tag Cloud--> <!--Begin Left Advert--> <!--<div class="container-narrow-top"></div>--> <!--<div id="advert-left"><!--[var.ads_left;htmlconv=no;comm]--></div>--> <!--<div class="container-narrow-bottom"></div>--><!--End Left Advert--> <!--<div style="height:120px;"> </div>--> </div><!--End Left Column--> <!--Begin Right Column--> <div id="column-right-2"> <!--Begin Video Search List--> <div style="height: 2px;"> </div> <span style="margin-bottom: 12px;" class="font5_15"> "[var.keyword]" [var.get_type_word] [var.lang_search] [var.results_show] - [var.results_of] of [var.total_records] [var.lang_results] <br /> <!-- Replace ambiguous text with clear button links below. -JG --> <!-- Please Select the Continue Button to Purchase Now - Or Search Again.<br />--> <form id="buyVideo" name="buyVideo" method="post" action="buy-video.php"> <!-- CONTINUE button replaced. -JG --> <!--input type="submit" name="purchase" value="Continue" style="margin:7px 0" rel="gb_page_center[600, 435] "--> <input type="submit" name="purchase" value="Use Credits Now" style="margin:7px 0" rel="gb_page_center[600, 435] "> <input type="button" name="search" value="Search Again" onclick="window.location.href='page.php?page=9';" style="margin:7px 0"> <input type="button" name="search" value="Purchase Credits" onclick="window.location.href='credits.php';" style="margin:7px 0"> <input type="hidden" name="keyword" value="[var.keywords2]"> <input type="hidden" name="submitted" value="yes"> <input type="hidden" name="ttl" value="[var.total_price]"> <input type="hidden" name="user_id" value="[var.user_id]"> <input type="hidden" name="credits" value="[var.member_credits]"> <input type="hidden" name="id[]" value="[blkfeatured2.indexer;block=input]"></input> </span> <br><!-- Check All Box --> <input type="checkbox" name="checkall" onclick='checkedAll()'> Select All<br> <!-- end checkbox mod --> <!-- ******************************** START OF CUSTOM MESSAGE BLOCK ******************************* -JG --> <script> function doCreditCheck() { // The custom message block only appears when the PAY/SEARCH buttons are present. // The presence of those buttons indicates that you need to pay before viewing the video. document.getElementById('popupBuyMsg').style.display = 'block'; // We return false so that the href associated with this object is ignored. return false; } </script> <style> .buymsg { display:none; position:absolute; top:300px; left:300px; width:350px; background-color:#eeeeff; border-style:solid; border-width:1px; padding:15px 20px 5px 20px; } .buymsgclose { text-decoration:none; font-size:0.9em; font-variant:small-caps; margin-top:10px; } </style> <!-- Hidden message block to replace inner_purchase.htm when only a GreyBox message is being displayed. --> <div id="popupBuyMsg" class="buymsg"> You must use "credits" to view this video.<br> You have <strong>[var.member_credits]</strong> credits in your account.<br> <br /> To view this video select "Use Credits".<br> To purchase credits select "Purchase Credits".<br> Or Search Again. <div style="width:100%; text-align:right;"> <a class="buymsgclose" href="#" onclick="document.getElementById('popupBuyMsg').style.display = 'none'; return false;">Close Window</a> </div> </div> <!-- ********************************** END OF CUSTOM MESSAGE BLOCK ********************************** --> <div id="content-list"> <ul class="content-list-thumb" style="margin-top: 13px;"> <span style="margin-left: 1px;"><input type="checkbox" name="checkedBoxs[]" value="[blkfeatured.indexer;block=div]"></span><br /> <br /> <!-- Add an onclick feature that first checks to see if you need to use purchase credits. -JG --> <li><a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li> <!--li><a onclick="return doCreditCheck();" href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]"><img src="uploads/thumbs/[blkfeatured.thumb_string;block=div].jpg" alt="video pic" width="120" height="90" border="0" /></a></li--> </ul> <ul class="content-list-info"> <li><h4><span style="color: #000000;">[var.lang_title]:</span> <a href="videos/[blkfeatured.indexer;block=div]/[blkfeatured.title_seo;block=div]" rel="gb_page_center[600, 435] "><!--[blkfeatured.title;htmlconv=no;block=div;ope=max:70;comm]--></a></h4></li> <!--<li><b>[var.lang_description]: </b><!--[blkfeatured.description;htmlconv=no;block=div;ope=max:68;comm]--></li>--> <li><!--<span class="font4_12">[var.lang_rating]test </span>--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star1;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star2;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star3;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star4;block=div]" width="18" height="18" alt="1 Star" />--> <!--<img border="0" src="themes/[var.user_theme]/images/[blkfeatured.star5;block=div]" width="18" height="18" alt="1 Star" />--> <!--<span class="font4_12">[var.lang_views]: </span>--><!--(<!--[blkfeatured.number_of_views;block=div;comm]-->)--> <!--<span class="font4_12">[var.lang_duration]: </span>--><!--(<!--[blkfeatured.video_length;block=div;ope=max:45;comm]-->)--> <!--<span class="font4_12">[var.lang_uploaded]: </span>--> </li> <li><!--<span class="font4_12">[var.lang_tags]: </span>--></li> <li><!--<b>[var.lang_comments] - [var.lang_responses]: </b>--><!--(<!--[blkfeatured.comments;block=div;ope=max:80;comm]-->)--></li> </ul> [onload;block=div;when [var.type_videos]=1;] </div> <!--End Video Search--> <!-- Pagination start --> <div align="center"> <div id="pagination"> <li> </li> <ul>[var.show_pages;htmlconv=no]</ul> </div> </div> <!-- Pagination end --> </div><!--End Right Column--> </form> Hey all! I'm new to these forums, but by the looks of the community I can foresee myself gaining a lot of knowledge from being here. I've searched around, but haven't really found a clear answer to the problem I am having. Here's the deal, I have my own small local IT business and recently decided It's time to build a website. I am Cisco CCNA certified, and CompTia A++ Hardware and OS support certified, so I know my way around computers. However, I have ZERO knowledge of HTML/CSS/PHP ect. This of course was a huge gap in my knowledge, and the reason why I have waiting so long to get a website up and running. I am slowly learning, but everybody needs help at some point. So this is where I am at. I have created my basic website based off a template. I have modified it quite a bit, and have begun to understand basic HTML and CSS. However, I am stuck at the "Message Box, or Contact Us" Form. I am assuming the the code behind this form will either send the Users message via Email, or text document on my server. After examining the code I am completely lost as to how it works, so I need some help here. My Website is located at http://www.olsonit.com The problem page is the "Contact Us" page. Here is the code for said Message box. <tr> <td align="left" valign="top"><form name="form2" method="post" action="" style="margin:0px "> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="usial2"> <tr align="left" valign="top"> <td height="39"><strong>First name</strong><br> <input name="text25" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td width="15" rowspan="4"> </td> <td><strong>Phone</strong><br> <input name="text252" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td width="15" rowspan="4"> </td> <td width="172" rowspan="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="usial2"> <tr> <td><strong>Message</strong><br> <textarea name="textarea" class="intext" style="width:100%; height:126px; overflow:auto" onClick="this.value=''"></textarea></td> </tr> <tr> <td height="27" align="right" valign="bottom"><input name="reset" type="reset" style="width:56px; height:19px; background-image:url(images/clear.jpg); border:0px none; cursor:hand; cursor:pointer; margin-right:7px " value=""> <input name="submit22222" type="submit" style="width:56px; height:19px; background-image:url(images/send.jpg); border:0px none; cursor:hand; cursor:pointer; " value=""></td> </tr> </table></td> </tr> <tr align="left" valign="top"> <td height="39"><strong>Last name</strong><br> <input name="text253" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td><strong>Fax</strong><br> <input name="text254" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> </tr> <tr align="left" valign="top"> <td height="39"><strong>E-mail</strong><br> <input name="text256" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td><strong>State</strong><br> <input name="text257" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> </tr> <tr align="left" valign="top"> <td><strong>Zip</strong><br> <input name="text258" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> <td><strong>Address</strong><br> <input name="text259" type="text" class="intext" style="width:100%; height:17px" onClick="this.value=''"></td> </tr> </table> </form></td> </tr> </table> </div></td> </tr> </table></td> </tr> </table></td> </tr> Hopefully I'll be able to get this all figured out, since I'm sure this will be a main source of contact between my Clients and I. Any help is much appreciated! -Evan How would I set something up on a website hosted by the server, were I can implement a text box that can be update by not updating the actual page it self, so I dont have to continually update the actual page rather some other form be able to update current news, and dates of certain events. If you get what Im trying to say. Not sure if it would be HTMl or PHP. Thanks for the help! how can i make my private message alert page refresh every 20 seconds or so. if you need to see the code am using just let me know. Thanks I've have some sound files that are a little slow to load....it is there a way to display a message that says something like: "Loading please wait?" Thanks guys! Jeff I've been trying to put together my musician's directory page, but I'm getting an error message in the status bar of my browser upon loading the page, and attempting to use the drop-down box I created to select a state-specific page. The drop-down box isn't working as it's supposed to immediately redirect the bisitor to the selected page, and this is what it the error says: Line: 16 Char: 1 Error: Object expected Code: 0 URL: http://www.geocities.com/josh*******...nections.html? 200618 What could be wrong? On some websites when they want to show you a message they make the screen dark behind the message. Is there any code snippets out there to help me re-create this effect? obviously i know how to make my own messages, its the see-through black fade that I am wondering about. Hi every one I need help in my school assigment I have made a website in HTML for my school assigment its almost done rest this... When we open main page for eg Home.html when this open i want a audio or voice message WELCOME TO THIS SITE how can i do this please help Suggest coding for this i hv to sumit my assigment... Thanx in advance Hi there, I am working on a web page http://members.dodo.com.au/~rouslan/...ite/index.html Whenever trying to access it with Internet Explore (version 7) on the bar on top it says: "To help protect your security, Internet Explore has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..." I know that some webmasters setup their scripts so that messages like that don't come up. But I basically copied the script from http://giveaways.galganov.net/mousebut0.html which has the same script and no irritating message when accessing it with Internet Explore. What should I change in my script in order to make Internet Explore to "shut up"? Hey all, My site looks the way I want it to, but I keep getting an error message at the bottom of the browser window when viewing it in Internet Explorer 7. When looking at the message it's saying that something is wrong in: Line: 6 Char: 1 Error: Not implemented Code: 0 URL: http://www.harmonihomeconsulting.com/ Any idea what might be wrong there? Here's the link to my site: http://www.harmonihomeconsulting.com. I'm not sure exacly how the lines are counted, but I think it's referring to the meta name or title tag? Is there a limit to the number of keywords that can be placed in a meta name tag? Thanks for your help on this - greatly appreciate it! Johanm Hey guys! Ive added a working mailto system to my forums and till now i have this: Code: <form method="post" action="index.php?page=contact"> Your Email to response to: <input name="email" type="text"><br> Message:<br><textarea name="message" rows="15" cols="40"> </textarea> <br> <input type="submit"> </form> <br /> <b>Spamming/abusing this option will result in a permament ban!</b> that results in this: http://prntscr.com/662te and when they click on send i receive this in my inbox on my email account: http://prntscr.com/662ut But now my question. how can i make it work that when they send a message to me that i can see their ip adress that they used to send that message with? like this: http://prntscr.com/662x8 THE LINKS ARE SAFE IT JUST SHOWS THE MESSAGE. i really really really appericiate it when you reply me with the golden answer! ive been searching for ages thanks already luv juultjek50. Before asking for help or replying to a question..... Be as specific as you can when asking for help or with a general question. Post the code you are having problems with (or the relevant section of code) or post a URL to the page/code. Try and make the subject line of the question relevant to the question, ie: "Table not aligning properly". If your problem or question is specific to a browser list the version of the browser you are working with, simply saying Netscape or IE is much too vague to be of any real value. Do not post questions as "Urgent" or "Need a reply ASAP" or "HELP!!!". Its rude, obnoxious, and may delay a response to your question. Questions will be answered by whoever wishes to post a reply and whenever they wish to. Please do not abuse the forum or its members. All members are encouraged to answer questions posted in the forum. Even if you believe you may not be giving the best answer please feel free to post one. All questions and answers are welcome as long as they are relevant to the topic of this forum and offered in good faith. There may be more than one answer that is correct to any given question so be sure to read all the answers and choose which is best for your situation and skill level. Before posting a reply to a question pause for a moment to think if its really germane and relevant to the topic of the thread. There really is no need to post gratuitous comments about questions or answers. If correcting an answer posted by another member please be respectful and courteous. Thanks for taking the time to help us help you! Comments on this post adzthewise agrees: why dont people take more notice of this! ToshNeox agrees: I think people should read this. Perhaps even often to remind them that if they have an answer, they should say it. It's a pain when you look at your posts and nobody has answered it, even though we ourselves have not answered all of them. sammyP agrees: Maybe "(or the relavant section of code)..." could be replaced with "(only the relevant section of code)..." cascading-style agrees: I HATE IT WHEN PEOPLE DO THIS!!! Shannonc agrees: I read this Hello Friends, Plz let me know how to hide content before clicking on Submit Button, the message should be displayed in a new pop up window only if we click on Submit button. Plz let me know hot to write the code for this.... |