Target blank in PHP
Hello every body:
I'm using DW to design Dynamic web site.
In footer I need write the following sentence:
Designed by: My Web Site Name.
When click on My Web Site Name. It should open my own web in
new window..
My code was
html code:
Designed By:<a href="
http://www.MyWebSite Name.net"
target="_blank">My Web Site Name</a>
second time I used php code:
<?php
Designed By:<a href="
http://www.MyWebSite Name.net"
target="_blank">My Web Site Name</a>
?>
When I click on this link ,it is open my web site directly
and cancel target blank
Are there any body can help me?
Sorry for bad english.
.oO(small digital)
>Hello every body:
> I'm using DW to design Dynamic web site.
> In footer I need write the following sentence:
> Designed by: My Web Site Name.
> When click on My Web Site Name. It should open my own
web in new window..
> My code was
> html code:
> Designed By:<a href="
http://www.MyWebSite Name.net"
target="_blank">My Web
>Site Name</a>
> second time I used php code:
> <?php
> Designed By:<a href="
http://www.MyWebSite Name.net"
target="_blank">My Web
>Site Name</a>
> ?>
> When I click on this link ,it is open my web site
directly and cancel target
>blank
> Are there any body can help me?
It shouldn't work at all, but cause a parse error instead. If
you want
to print out something from within a <?php ... ?>
block, you have to use
a print or echo statement, like
<?php
print 'Designed by: <a href="...">...</a>';
?>
But why do you want to use PHP for this? Given the example
above there's
no need for it, since it's all just plain HTML. Is there
something more
you want to add to this link?
Micha
Similar Messages
-
Hi there
Work with dreamweaver8 for quite some time. Suddenly the target blank window in the property inspector is no longer activ (no highlight). For new pages as for the existing ones.
Where is the problem?
PKYou type that into where your HREF tag is. I cant see your code but it should look something like this
<a href="index.html" target="_blank" >
You will most likely have more items within the tag but anywhere after the link should be fine -
Hi,
How can create target blank (new page open) button click. please help meclick on your on-stage button (to select it). in the properties panel, add an instance name, eg btn. click an empty part of the stage or back stage to deselect all objects and in the actions panel paste:
btn.onRelease=function(){
getURL("http://www.adobe.com","_blank");
now test. -
Hello,
I have many pages that open via image links.
Can I create a CSS rule where I can have all these pages that
are opened via image links, open in a blank page. I know that I can
do it one a time by clicking on the image link and choosing target
> _blank.
Thanks,
Tom"tomintown" <[email protected]> wrote in
message
news:ghjc4g$156$[email protected]..
> Hello,
>
> I have many pages that open via image links.
>
> Can I create a CSS rule where I can have all these pages
that are opened
> via
> image links, open in a blank page. I know that I can do
it one a time by
> clicking on the image link and choosing target >
_blank.
CSS can't do that for you, but this may help:
http://tjkdesign.com/articles/popup_window_with_no_extra_markup.asp
or if you want to go the easy route:
http://divahtml.com/products/divaPOP/open_popup_windows.php
Thierry | Adobe Community Expert | Articles and Tutorials ::
http://www.TJKDesign.com/go/?0
Spry Widgets |
http://labs.adobe.com/technologies/spry/samples/
[click on
"Widgets"]
Spry Menu Bar samples |
http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html -
Linking to webpage with a target=blank
Does anyone know how to do this?
You'll need to be more specific about your workflow.
I assume you are talking about the equivalent of target="_blank" in an HTML anchor tag, but in what scenario? Do you mean you want a link embedded in a PDF file to open in a new window? This is the default behavior in Acrobat, it will open links in the system-specified application based on the link type (i.e. 'mailto' will open in your default mail client, 'http' will open in your web browser). -
Setting target blank as default for my page
I know how to set each link on my page to target_blank and I know how I can code my page to make this the default but is there a way to do this without actually writing the code in myself?
I'm very new to Dreamweaver and still feeling my way around. I tried looking under page properties but didn't see anything there. I don't know where else to look.Fortunately, no.
Not only is the target="_blank" attribute deprecated, it's a usability faux pas. If site visitors want to open links in new tabs/windows they can use right click. If ALL your links automatically launch a new tab/window you're crowding their browser and making a decision that isn't yours to make. The golden rule in web design is "don't mess with people's browsers."
Nancy O. -
How can open target blank in jquery code?
Hi
I am make a website special effect put a our product range help of jquery bottom potion left side picture "KIDS LIGHTS & ROOM MATES", i want to open new page, i am try but not sucess please help me. link is given below http://www.youngspaces.in/product-new.htmlHi
I am make a website special effect put a our product range help of jquery bottom potion left side picture "KIDS LIGHTS & ROOM MATES", i want to open new page, i am try but not sucess please help me. link is given below http://www.youngspaces.in/product-new.html
Please help this -
I built a form in Dreamweaver CS4 which looks and seems to work fine both in IE and FF. I then wrote the PHP script and uploaded it to my hosting site. When I fill in the form on the web, I get my "thank you" email stating I will contact them in 24 - 48 hours. I also get this from the hosting site - This email was sent using the PHP mail() function. If you received this email than the PHP mailer is working fine. With all that said my problem is that I do not get a copy of the form details. On the properties section in Dreamweaver, I have the Form ID as contactus and Action connecting to my folder - ../Contactform.php, but I have the target blank. What would it be - blank, parent or self or should it just be black?
Thanks in advance for any help.target="_blank" opens a page in a new window. It is not used for forms processing.
For a form, when you begin it, you need to tell it what's going to happen:
<form method="post" action="Contactform.php">
(And, actually, I don't recommend the use of upper and lower-case characters in any file that is to be called by a web server, bu that is not related to your issue.)
Then, you will have an action button at the bottom of your form:
<input type="submit" value=" Contact Me" />
When that action button (or submit button) is activated on your web page, it should query the form for what to do. In the case that I'm outlining here, the action is to run the php file you have called Contactform.php.
At that point, your php code takes over and will do something.
In your php, do you have something like this?
$subject = Contact_from_your_webpage;
$notes = stripcslashes($notes);
$message = " $todayis [EST] \n
Message: $notes \n
From: $visitor ($visitormail)\n
Telephone: $visitorphone ($visitorphone)\n
From: $visitor ($visitormail)\n
Address: $address1 ($address1)\n
Address: $address2 ($address2)\n
From: $city $state $zip\n
$from = "From: $visitormail\r\n";
mail("[email protected]", $subject, $message, $from);
This should send you an email with all of the stuff you put in your form to send
Please understand that, in this case, I am using form fields that may be different from yours (you didn't provide us with a link, so I don't know what your form fields are). My fields are as follows:
visitor
visitormail
visitorphone
address1
address2
city
state
zip
notes
I am going to hazard a guess that, either you didn't tell your form to do the right thing or your php is wrong.
-Mark -
Why does a link to zip file on server open a blank web page?
Using CS6, I created this page: J & B Computers - Projects I've uploaded 2 zip files and linked them from this page with this code: <a href="Zip Files/CheckIPApp.zip" target="_blank">Download a zip file of the IP Checking utility</a> When this link is clicked, it opens up a blank tab instead of prompting for a download. I've tried it with and without the target=blank, I've also tried target=new... I've tried it in Chrome and Firefox. I've tried it on different computers. I've searched for an answer for hours... what the heck is going on? I want the link to open up the save/download box and it just won't... TIA if you have a resolution!
Since it's a file download, there's no reason to add the target="_blank", I'm guessing your file is 404 for some reason which would give you a blank window per the target.
Make sure the case structure of the file and link are identical. Servers are case sensitive, a server sees CheckIPApp.zip and checkIPApp.zip as totally different files. Your local OS sees them as the same thing so during local testing it will work, when uploaded, it won't.
Make sure you've loaded the file onto the server at the exact location specified by the link. It should be in a folder called "Zip Files" that resides on the same directory level as the page that the link is on.
You may also want to normalize your file names. They should be all lower case alpha-numerics without any spaces (use hyphens or underscores instead) and without special characters ($%&*). You can use DW's Files window to change names and DW will fix the links automatically. -
New Document Type Template PHP Class
How do I create a new document type template for a PHP class
in Dreamweaver CS3?
I want to be able to go File -> New -> Blank Page ->
PHP Class.
I want the template to then look like:
[code]
<?php
class Classname {
//Class Member Variables
//Constructor
public function Classname() {
//Methods
?>
[/code]
Thanks.Bumb, anybody?
-
PHP script calling another but staying on same page
Hi,
Im thinking of writing an additional PHP page, that has a link to another PHP page, to do an insert. On the current PHP page, I have a counter which I would want incrementing after the 2nd PHP script is called, but don't think its possible?
I'm saying this as I will need an anchor to another script which when called, will load another PHP script - which will do the insert, but take me away from the current page.
So basically, I want to stay on the first PHP script showing a counter, click to call another PHP script, but all the user will see is a counter increment.
Here is what I have thought will not work:
<code>
echo "<br><span class=\"style1\"><a href=\"./../Test/count.php\"><img src=\"./Up.JPG\"></a>";
</code>
Thanks in advance...Hi,
got a bit further now in that i'm calling the php script through Ajax successfully, but, got the issue where i am getting the same value sent to the script (dataString):
source script:
<script type="text/javascript" >
$(function()
$(".submit").click(function()
var likeid = $("#likeid").val();
var dataString = 'likeid='+ likeid ;
var locurl = "./../Test/it.php?randval="+Math.random();
$.ajax({
type: "POST",
url: locurl,
data: dataString,
success: function()
$('.success').fadeIn(200).show();
$('.error').fadeOut(200).hide();
return false;
</script>
target script (it.php)
<?php if(!$_SESSION) { session_start(); } ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<head>
</head>
<body>
<?php
$_SESSION['name']=session_id();
$sess=session_id();
$likeid=$_POST['likeid']; <----------------------always the same value
if($_POST)
$result2 = mysql_query("INSERT INTO Test (value, sess) VALUES ('$likeid', '$sess')")
or die(mysql_error());
?>
</body>
</html>
what i get is the same value for $likeid on every call from the source script. In the source script i have:
<form method="post" name="form1">
<input type="hidden" name="likeid" id="likeid" value="CAR79668"/>
<a href="#"><img src="./Up.JPG" border="0" class="submit" onclick="change11('CAR79668');"></a>
<b id="CAR79668" value="2">2</b> </form> </span>
<form method="post" name="form2">
<input type="hidden" name="likeid" id="likeid" value="CAR79669"/>
<a href="#"><img src="./Up.JPG" border="0" class="submit" onclick="change11('CAR79669');"></a>
<b id="CAR79669" value="2">2</b> </form> </span>
Why does the same value of CAR79668 get passed to the target script on every call?
Thanks. -
URL link with target _blank
Is it true that is not possible to insert in wiki pages a link to an external page with target set to "_blank" (new page)? If possible, how to do this?
adobe1kenobe066 wrote:
Site with the SWF with the link with target="_blank":
http://solarinkgraphics.com/web.htm • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
Site it should go to:
http://thehoneymoonphase.com
First off that first link to the graphics site does not work. Getting a page not found error. Although I was able to do a quick lucky guess and added an "l" to the end of the address and it worked.
Second, because the link is embedded within a Flash document, your problem will lie within the ActionScript code as opposed to the HTML. Thus you would be better off posting this in the Flash forum with your ActionScript code to get better troubleshooting responses.
http://forums.adobe.com/community/flash -
Target=_blank working in standalone ICEbrowser
Hi
I am using 4.2.1.0 Beta.
When i have a line like the one below, i get a RuntimeException.
<A href="http://otn.oracle.com/tech/java/help/content.html
target="_blank">Oracle Help Tech.Web site</A>.
So basically i wanted to know, if the bug is inherent in the icebrowser. so i started the browser like this.
java -classpath oracle_ice5.jar ice.browser.Main.
and browsed various sites with have target="_blank", it work perfectly. I found that it needs a ViewPortCallBack handler for this to work.
Whats the delivery date for this implementation in OHJ ..
ok.
I found that there needs to be viewCallBack that has to be implemented
to make this work.
Is there is definite schedule when this API upgrade can be expected.adobe1kenobe066 wrote:
Site with the SWF with the link with target="_blank":
http://solarinkgraphics.com/web.htm • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
Site it should go to:
http://thehoneymoonphase.com
First off that first link to the graphics site does not work. Getting a page not found error. Although I was able to do a quick lucky guess and added an "l" to the end of the address and it worked.
Second, because the link is embedded within a Flash document, your problem will lie within the ActionScript code as opposed to the HTML. Thus you would be better off posting this in the Flash forum with your ActionScript code to get better troubleshooting responses.
http://forums.adobe.com/community/flash -
Okay, so I have a SWF embedded on a page, which has a link to a target="_blank" url, and it works in every other browser, INCLUDING the notorious ie6, but NOT in IE7?
IE7 just opens a blank page (without the address in the address field) and displays 'connecting...' and stays there forever.
• I even manually typed in the adress of the site I'm trying to access with the link, and the page opened just fine in IE7.
But when I click on the link from the SWF, it hangs again and doesn't open. I manually typed in both addresses with and without the 'www' (i.e. http://somewebsite.com and http://www.somewebsite.com) and both opened in IE7.
But the link from the SWF ONLY opens a blank page with the 'connecting...' and stays there forever.
• I feel like it was working previously, but I could be wrong. Besides that, it is working in ie6, of all things. So I don't get it?
• This also happens with other website that have a link with target="_blank" in IE7, so it's not only my site.
As always any leads are greatly appreciated.
Site with the SWF with the link with target="_blank":
http://solarinkgraphics.com/web.htm • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
Site it should go to:
http://thehoneymoonphase.comadobe1kenobe066 wrote:
Site with the SWF with the link with target="_blank":
http://solarinkgraphics.com/web.htm • clicking on the IMAGE or the "ENLARGE" link should take you to a target="blank" url
Site it should go to:
http://thehoneymoonphase.com
First off that first link to the graphics site does not work. Getting a page not found error. Although I was able to do a quick lucky guess and added an "l" to the end of the address and it worked.
Second, because the link is embedded within a Flash document, your problem will lie within the ActionScript code as opposed to the HTML. Thus you would be better off posting this in the Flash forum with your ActionScript code to get better troubleshooting responses.
http://forums.adobe.com/community/flash -
Custom button to URL using target="_blank" RH9
Hi,
Ive got a custom button in my Navigation toolbar that links to a web site. I'd like the site to launch in a new tab/window, but I can't seem to use target="blank" when modifying the code in whskin_tbars.htm
Does anyone have a JavaScript action that would do this, or is it not possible?
It would be nice for the user not to lose the help when being sent to the site.
MarkSorted it after a bit of looking around (my JavaScript knowledge is a bit limited!). If anyone needs to do this, enter the following in the OnClick field:
window.open('http://www.mysite.com', '_blank');
Mark
Maybe you are looking for
-
How do you embed a Bookeo widget in iWeb? Use iFrames?
I am trying to embed a Bookeo widget (Bookeo is a website that maintains bookings for business, such as tours) using iWeb. 1. First step, the instructions from Bookeo say to insert the following HTML code where you want the code to appear. <script t
-
Hey All, I've started working JDBC since few days and already had early hiccups !!! I installed Oracle * into my PC and wrote a simple code to connect to the database unfortunately it didn't connect Now I am not sure whether there is any support for
-
Storing report document in Session
Hi I have followed the advice on storing the Report document in the Session object. My code does this in the Page_Load event when not a postback. It all seems to work until I attempt to drill down to a sub report. I'm then asked for parameter info ev
-
Computer shut down and restart
My HP Pavilion dv4 shuts down and restarts whenever it wants to. The first warning is that my cd drive will engage then my screen goes black and white writing appears that says "A problem has been detected with your computer. Windows has shut down
-
My iPhone 4s has been blocked due to forgetting my password, I can't remember my email or password to unblock my phone. If I went to the apple store and took some kind of ID or phone bill for proof would they be able to unblock my phone? Please help