Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to create a link/button in dreamweaver?

Featured Replies

I created a hyperlink in dreamweaver and i'm expecting it to transfer me to another website when clicked,but instead it downloaded the website's file.For example,in A.php,i created a hyperlink to B.php,but when it is clicked,it downloaded B.php instead,but i want it to bring me to that website,not download the file.What happened??And what can i do??

  • Author
@charset "utf-8";
h1 {
    font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
    color: #000000;
    text-align: center;
    font-size: 90px;
    background-color: #3BC2FD;
}



body  {
    background-color: #D0DAE1;


}

.EPRB {
    font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", sans-serif;
    font-size: 100px;
    color: #333FE6;
}
body h2 {
    color: #4D74DD;
    text-align: center;
}
.register {
    width: 300px;
    margin-left: 650px;
    color: #7E37F5;
}
#navigation {
    width: 200px;
    height: 250px;
    background-color: #3BC2FD;
    text-shadow: 0px 0px;
    border-color: #000000;
}

#navigation ul  {
    list-style-type: none;
}
a {
    font-style: oblique;
    font-weight: 900;
    font-size: large;
    text-transform: uppercase;
    color: #000000;
}
#navigation a:hover ,a:active,a:focus{
    background-color: #4B35E6;
}
.button   {
    color: #4B35E6;
}


#navigation a {
    display: block;
    height: 33.3333%;
}

The above is the CSS file

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Main page</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>
<header>
  <h1><span class="EPRB">E</span>-<span class="EPRB">P</span>endaftaran <span class="EPRB">R</span>umah <span class="EPRB">B</span>iru</h1>
</header>
<nav id="navigation">
  <ul>
    <li><a href="search.php">Carian</a></li>
  </ul>
  <p>&nbsp;</p>
  <ul>
    <li><a href="form.php">Borang Pendaftaran </a></li>
  </ul>
  <p>&nbsp;</p>
  <ul>
    <li><a href="login.php">Log Keluar</a></li>
  </ul>
</nav>
</body>
</html>

The html code for the page where the problem i face is occuring.

There is no reason why those links should result in a download. Which suggests it’s something to do with the target pages rather than the source.

Can you publish the website. There is plenty of cheap or even free hosting available.

Note: you can remove almost all the markup on your navigation. All those lists and empty paragraphs aren’t necessary.

Did you check the location of the php files ?.. are they in the same folder where your html is or in another folder ?

also make sure the names of the php files  in your html is same as your orginal php files

 

like form.php and Form.php are not same

 

also try clearing your browse cache or try in different browser

 

and i also hope you installed wamp server in your pc as php may not show in a browser unless you have wamp or xampp installed on your pc

 

 

  • Author
On 6/2/2019 at 11:58 AM, sash_oo7 said:

Did you check the location of the php files ?.. are they in the same folder where your html is or in another folder ?

Yes,all the php files i created are all in the same folder.

Btw,i did not create any html files,i only created php files.Only the code is in html,the file is php.

On 6/2/2019 at 11:58 AM, sash_oo7 said:

also make sure the names of the php files  in your html is same as your orginal php files

 

like form.php and Form.php are not same

Just checked,its already correctly and perfectly match.

 

On 6/2/2019 at 11:58 AM, sash_oo7 said:

also try clearing your browse cache or try in different browser

I tried using internet explorer(i normally use google chrome),but it still doesnt bring me to the targeted page,it downloads the php file instead.

On 6/2/2019 at 11:58 AM, sash_oo7 said:

and i also hope you installed wamp server in your pc as php may not show in a browser unless you have wamp or xampp installed on your pc

I dont think i have wamp server installed,but i can preview my php files in my browser just fine,only the hyperlink doesnt work as intended.Could it be because of this,should i try downloading wamp server?

 

On 6/1/2019 at 6:34 PM, fisicx said:

There is no reason why those links should result in a download. Which suggests it’s something to do with the target pages rather than the source.

One of the target page:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Form page</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>

<body>
<header>
  <h1><span class="EPRB">E</span>-<span class="EPRB">P</span>endaftaran <span class="EPRB">R</span>umah <span class="EPRB">B</span>iru</h1>
</header>
<nav class="navigation">
  <a href="search.php">Carian</a>
  <a href="form.php" class="button">Borang Pendaftaran </a>
  <a href="login.php">Log Keluar</a>
</nav>
<form class="centreForm" name="pendaftaran">
<div class="leftForm">
    <p>
	  <label for="Nama">Nama:</label>
        <input name="Nama" type="text" required="required" form="pendaftaran">
    </p>
    <p>
	  <label for="Kelas">Kelas:</label>
      <input name="Kelas" type="text" required="required" form="pendaftaran">
    </p>
	<p>
	  <label for="Alamat">Alamat:</label>
      <input name="Alamat" type="text" required="required" form="pendaftaran">
    </p>
	<p>
	  <label for="NoTel">No Telefon:</label>
      <input name="NoTel" type="text" required="required" form="pendaftaran">
    </p>
	
	<p>
	  <label for="Jantina">Jantina:</label>
      <input name="Jantina" type="text" required="required" form="pendaftaran">
    </p>
	<p>
	  <label for="Jawatan">Jawatan:</label>
      <input name="Jawatan" type="text" required="required" form="pendaftaran">
    </p>
	<p>
	  <input type="submit" name="submit" form="pendaftaran" value="Submit">
	  <input type="reset" name="reset" form="pendaftaran" value="Reset">
	</p>
	
</div>
<div class="rightForm">
	<p>
	  <label for="Nama Bapa">Nama Bapa:</label>
	  <input name="Nama Bapa" type="text" required="required" form="pendaftaran">
	</p>
	<p>
	  <label for="NoTel Bapa">No Telefon:</label>
	  <input name="NoTel Bapa" type="text" required="required" form="pendaftaran">
	</p>
	<p>&nbsp;</p>
	<p>&nbsp;</p>
	<p>
	  <label for="Nama Ibu">Nama Ibu:</label>
	  <input name="Nama Ibu" type="text" required="required" form="pendaftaran">
	</p>
	<p>
	  <label for="NoTel Ibu">No Telefon:</label>
	  <input name="NoTel Ibu" type="text" required="required" form="pendaftaran">
    </p>
  </div>
</form>
</body>
</html>

Btw,ive removed some lists and empty paragraph as you suggested.

Quote

I dont think i have wamp server installed,but i can preview my php files in my browser just fine,only the hyperlink doesnt work as intended.Could it be because of this,should i try downloading wamp server?

yes install wamp server 

https://www.youtube.com/watch?v=MsMaiHqkKkQ

 

start it properly

then put your html and php files in correct folder..then  check if the hyperlinks work or not

  • 2 weeks later...
  • Author

I just downloaded wamp server,but I lost my database table from my localhost after that because my localhost is replaced with wampserver,so I need to redownload app-serv and redo the table again,so I deleted wamp server.

Since I can't download wampserver cause I already have app-serv,anymore idea how to solve my hyperlink working as download problem???

Please help asap,I need to hand in by next Monday..

Edited by Cheah Hsun Teik

Your hyperlinks probably don't work because your PC can't handle php files.

Just go get some cheap hosting and upload the files. Your links will then work.

  • Author

 

3 hours ago, fisicx said:

Your hyperlinks probably don't work because your PC can't handle php files.

But I just brought my laptop last year,and it's spec is quite good,how can it lacks this feature??

 

3 hours ago, fisicx said:

Just go get some cheap hosting and upload the files. Your links will then work.

Ok,I will,but can I know the difference between a download link and a link that brings me to another website?Maybe I can try solving the problem myself with a little bit help from you. 

14 hours ago, Cheah Hsun Teik said:

 

But I just brought my laptop last year,and it's spec is quite good,how can it lacks this feature??

Because php runs on a server. You need an application like wampp to make your laptop behave like a server.

Your links are not downloads. They are just pointing to php files which your browser can’t handle so offers you the option to download or open the file in a different application.

  • Author

Does app-serv works or must it be wampp,cause I'm using app-serv at the moment.If I need wampp,then I'll ask my teacher first...

And also please teach me how to transfer my database table from appserv to wampserver???

Thanks..

Btw,I also tried creating a local/network server in dreamweaver.When I set it as testing server,it gives a not found error and says something like URL/a.php does not exist in server.When I set it as a remote server,it works,but the initial problem persist(the link).

So basically I have two problems now..

Edited by Cheah Hsun Teik

No idea. Never used appserv. Not even sure why you need a database, your site appears to be flat files - no database calls anywhere.

You don’t need to transfer your files to wampp, it’s just lets you run php files on your laptop.

go get some hosting and ftp the files. By far the simplest solution.

 

  • Author
1 hour ago, fisicx said:

Not even sure why you need a database, your site appears to be flat files - no database calls anywhere

1 hour ago, fisicx said:



I need database because I'm doing a registration website where blue house members register.The data they put in will go to the database.

1 hour ago, fisicx said:

You don’t need to transfer your files to wampp, it’s just lets you run php files on your laptop.

I meant transferring the database table I created from app-serv to wampserver.

1 hour ago, fisicx said:

go get some hosting and ftp the files. By far the simplest solution.

This is just a secondary school project(equivalent to middle/high school,I think),so I don't think I'm going to do or get hosting or use FTP,my teacher clearly asked me to use local/network(localhost)

I'm from Malaysia,btw

1 hour ago, fisicx said:

No idea. Never used appserv. 

When you're free,can u do some research and tell me if app-serv is the problem.

And sorry for wasting your time..

Edit:I've just redownloaded wampserver,but there is an error 200 that ask me to check my connection and server status,my first time downloading was ok..

Edited by Cheah Hsun Teik

  • Author

Nevermind,problem solved by downloading wampserver and creating my site and server inside wampserver ,after so long,but I'm still not sure whether I can finish in time...hopefully,I can...btw,thanks everyone that helped...I may have more questions tmrw,so be ready😁😁

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.