---
title: "citationsteck i php"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/120324-citationsteck-i-php"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "pelikanen"
published: "2005-01-17T18:14:58.000Z"
updated: "2005-01-17T18:18:34.000Z"
replies: 1
views: 249
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/php/120324-citationsteck-i-php"
---

# citationsteck i php

## #1 — pelikanen, 2005-01-17T18:14Z

Hej!

Jag får inte följande onclick funktion att fungera. Problemet är citationstecknen. Jag vet inte hur jag skall göra. Det skulle behövas tre typer av citationstecken för att detta skulle funka istället för bara ' och ". Förmodligen går det att lösa lätt och smidigt av er som kan programmera bättre.

			         \<?php
	  if (isset($\_COOKIE\["redanrostat2"\])){
echo "\<br\>";
}
else{

echo "\<INPUT TYPE='RADIO' NAME='alt1' VALUE='Ja,flytande' onclick='window.open('http://www.hejryssland.se/rosta.php?alt=1)','','height=270,width=380,scrollbars=no,status=1,resizable = 0')\>Ja,flytande\<br\>";

echo "\<INPUT TYPE='RADIO' NAME='alt2' VALUE='Ja,bra' onclick='window.open('http://www.hejryssland.se/rosta.php?alt=2)','','height=270,width=380,scrollbars=no,status=1,resizable = 0')\>Ja,bra\<br\>";}   
           
?\>

mvh

Pelikanen

Permalänk: https://www.webforum.nu/p/120324

## #2 — @nders, 2005-01-17T18:18Z

Backslash är escapetecken. Exempel:

```php
echo "<INPUT TYPE=\\"RADIO\\" NAME=\\"alt1\\" VALUE=\\"Ja,flytande\\" onclick=\\"window.open('http://www.hejryssland.se/rosta.php?alt=1','','height=270,width=380,scrollbars=no,status=1,resi
zable = 0');\\">Ja,flytande<br>";
```

Använd \[php\]-taggar när du postar php-kod, så blir det mer överskådligt och lättläst.

Mvh

Permalänk: https://www.webforum.nu/p/1531553

---

Tråden på webben: https://www.webforum.nu/amne/php/120324-citationsteck-i-php
