---
title: "lägga ihop data i 3 fält till etti"
type: "forum-thread"
url: "https://www.webforum.nu/amne/asp/70773-lägga-ihop-data-i-3-fält-till-etti"
topic: "ASP"
topic_url: "https://www.webforum.nu/amne/asp"
author: "Örjan Hagström"
published: "2003-03-11T19:36:21.000Z"
updated: "2003-03-13T10:23:19.000Z"
replies: 3
views: 208
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/asp/70773-lägga-ihop-data-i-3-fält-till-etti"
---

# lägga ihop data i 3 fält till etti

## #1 — Örjan Hagström, 2003-03-11T19:36Z

Kan någon tala om hur man kan lägga ihop informationen i tre st separata fält i ett formulär till ett fält i samma formulär.

\<input type="hidden" name="sokvag"  value="C:\\bilder\\"\>
 
\<font size="-1"\>\<b\>\<font color="Maroon"\>Identitet:\</font\>\</b\>\</font\>:&nbsp;
\<input type="text" size="10" name="identitet"  maxlength=10
Style="Background: blue; color: white; width:2,5cm"\>

\<Legend\>\<b\>\<font color="Maroon"\>\<font size="-1"\>Bildformat\</font\>\</font\>\</b\>\</legend\>
\<font size="-1"\>\<b\>\<font color="Maroon"\>.bmp\</font\>\</b\>\</font\>:&nbsp;
\<input type="radio" name="bildformat" value=".bmp"\>\<br\> 
\<font size="-1"\>\<b\>\<font color="Maroon"\>.gif\</font\>\</b\>\</font\>:&nbsp;
\<input type="radio" name="bildformat" value=".gif"\>\<br\> 

Det jag vill göra är att automatiskt ge fältet ’bild’ nedan en sträng bestående 
av de tre ovanstående  fältsträngarna ’sokvag’ , ’identitet’ och ’bildformat’
Alltså fältet ’bild’ skall innehålla en sträng ex. C:\\bilder\\landskap.jpg 

\<font size="-1"\>\<b\>\<font color="Maroon"\>Bildens sökväg och namn:\</font\>\</b\>\</font\>:&nbsp;
\<input type="text"  size="50" name="bild"  value="sokvag + identitet + bildformat" maxlength=20
Style="Background: YELLOW; color: BLACK width:1,5cm"\>\<br\>

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

## #2 — Peeer, 2003-03-11T19:45Z

```
<input type="hidden" name="sokvag" value="C:\bilder\"> 
<input type="text" size="10" name="identitet">
<input type="radio" name="bildformat" value=".bmp"><br> 
<input type="radio" name="bildformat" value=".gif"><br> 

<input type="text" size="50" name="bild" value="[b]<%=Request.form("sokvag") & Request.form("identitet") & Request.Form("bildformat") %>[/b]" maxlength=20 
Style="Background: YELLOW; color: BLACK width:1,5cm">
```

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

## #3 — OveRRidE, 2003-03-11T19:45Z

Oj, sicken rörig kod. :D

```
<input type="hidden" name="sokvag" value="C:\bilder\"> 

<font size="-1"><b><font color="Maroon">Identitet:</font></b></font>:  
<input type="text" size="10" name="identitet" maxlength=10 
Style="Background: blue; color: white; width:2,5cm"> 

<Legend><b><font color="Maroon"><font size="-1">Bildformat</font></font></b></legend> 
<font size="-1"><b><font color="Maroon">.bmp</font></b></font>:  
<input type="radio" name="bildformat" value=".bmp"><br> 
<font size="-1"><b><font color="Maroon">.gif</font></b></font>:  
<input type="radio" name="bildformat" value=".gif"><br>
```

```
<% 
strPaste = request.form("sokvag") & request.form("identitet") & request.form("bildformat")
%>

<font size="-1"><b><font color="Maroon">Bildens sökväg och namn:</font></b></font>:  
<input type="text" size="50" name="bild" value="<%=strPaste%>" maxlength=20 
Style="Background: YELLOW; color: BLACK width:1,5cm"><br>
```

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

## #4 — Örjan Hagström, 2003-03-13T10:23Z

Tack för hjälpen.
Fungerar alldeles utmärkt
 :birp

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

---

Tråden på webben: https://www.webforum.nu/amne/asp/70773-lägga-ihop-data-i-3-fält-till-etti
