---
title: "index.php?kontakt?action=skickamail"
type: "forum-thread"
url: "https://www.webforum.nu/amne/php/16094-index-php-kontakt-action-skickamail"
topic: "PHP"
topic_url: "https://www.webforum.nu/amne/php"
author: "klockren"
published: "2001-09-16T09:37:00.000Z"
updated: "2001-09-16T10:25:00.000Z"
replies: 1
views: 185
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/16094-index-php-kontakt-action-skickamail"
---

# index.php?kontakt?action=skickamail

## #1 — klockren, 2001-09-16T09:37Z

Hej
Jag använder require för att kunna uppdatera siten lättare.
För att komma till sidan kontakt klickar man på länken **index.php?kontakt**.

Nu är det så att på sidan kontakt finns ett mailformulär, som använder sig av funktionen "skickamail".

Så när jag trycker på knappen "Skicka!" i mailforuläret anropas **index.php?kontakt?action=skickamail**, och detta fungerar naturligtvis inte, beroende på index.php's uppbyggnad.

Vad behöver jag ändra i index.php för att få detta att fungera, alltså för att skicka två argument (ibland) till index.php?

**index.php**

```
<?
require "include/beginning.php";

if($pg=="")
{
	if($QUERY_STRING!="")
	{
		$pg=strtok($QUERY_STRING, "&");
		if(strchr($pg,"="))
		$pg="main";
	}
	else
		$pg="main";
}
if(file_exists("include/$pg.php"))
{
	require "include/$pg.php";
}
else
{
	require "include/main.php";
}

require "include/end.php";
?>
```

MVH
Jonas

\[Redigerat av klockren den 16 sep 2001\]

\[Redigerat av klockren den 16 sep 2001\]

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

## #2 — pimme, 2001-09-16T10:25Z

för att skicak två argument så sätter du ett och-tecken mellan dom. t.ex. index.php?kontakt&action=skickamail

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

---

Tråden på webben: https://www.webforum.nu/amne/php/16094-index-php-kontakt-action-skickamail
