[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
 OpenForum.dk • Vis emne - Flere felter i contact_us.htm [LØST]

Flere felter i contact_us.htm [LØST]

Generelle spørgsmål og debat.

Redaktør: Redaktionen

Flere felter i contact_us.htm [LØST]

Indlægaf terkelhansen » 2010-03-15 18:10

Senest rettet af terkelhansen 2010-10-10 15:52, rettet i alt 1 gang.
terkelhansen
Novice
Novice
 
Indlæg: 7
Tilmeldt: 2010-03-15 18:04

Re: Flere felter i contact_us.htm

Indlægaf HOJ » 2010-03-15 22:53

Hej

Det kan laves sådan her:

I toppen af /contact_us.php:

require('includes/application_top.php');

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);

$error = false;
if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);

// ********** Ekstra felt til telefonnummer
$phone = tep_db_prepare_input($HTTP_POST_VARS['phone']);
// ********** Ekstra felt til telefonnummer

$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

if (tep_validate_email($email_address)) {

// ********** Ekstra felt til telefonnummer
tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $phone, $email_address);
// ********** Ekstra felt til telefonnummer

tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
} else {
$error = true;

$messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
}
}


og lidt længere nede:

<?php
} else {
?>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php echo ENTRY_NAME; ?></td>
</tr>
<tr>
<td class="main"><?php echo tep_draw_input_field('name'); ?></td>
</tr>

// ********** Ekstra felt til telefonnummer
<tr>
<td class="main"><?php echo ENTRY_PHONE; ?></td>
</tr>
<tr>
<td class="main"><?php echo tep_draw_input_field('phone'); ?></td>
</tr>
// ********** Ekstra felt til telefonnummer

<tr>
<td class="main"><?php echo ENTRY_EMAIL; ?></td>
</tr>
<tr>
<td class="main"><?php echo tep_draw_input_field('email'); ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_ENQUIRY; ?></td>
</tr>
<tr>
<td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>
</tr>
</table></td>
</tr>
</table></td>


og så indsætter du følgende linje i /includes/languages/danish/contact_us.php

define('ENTRY_NAME', 'Navn:');
// ********** Ekstra felt til telefonnummer
define('ENTRY_PHONE', 'Telefonnummer:');
// ********** Ekstra felt til telefonnummer
define('ENTRY_EMAIL', 'E-Mail Adresse:');
define('ENTRY_ENQUIRY', 'Forespørgsel:');


Mvh
Hans
HOJ
Novice
Novice
 
Indlæg: 19
Tilmeldt: 2009-04-4 14:09

Re: Flere felter i contact_us.htm

Indlægaf agentjensen » 2010-03-16 08:30

Ellers prøv at søge på modersiden - der er flere contribs der ændre contact_us med forskellige ting og features.
/AgentJensen
KUN en tåbe frygter ikke PHP :-)
agentjensen
Ekspert medlem
Ekspert medlem
 
Indlæg: 1418
Tilmeldt: 2007-01-4 17:47
Geografisk sted: Halskov v/Skive

Re: Flere felter i contact_us.htm

Indlægaf terkelhansen » 2010-09-30 15:35

terkelhansen
Novice
Novice
 
Indlæg: 7
Tilmeldt: 2010-03-15 18:04

Re: Flere felter i contact_us.htm

Indlægaf pertho » 2010-09-30 19:51

Jamen så er det nok fordi, at den løsning ikke virker.
Godt nok er vi her for at hjælpe, men det er jo ikke sikkert at vores svar virker 100%.
pertho
VIP medlem
VIP medlem
 
Indlæg: 2136
Tilmeldt: 2007-08-16 22:25

Re: Flere felter i contact_us.htm

Indlægaf Kennith » 2010-10-1 15:22

Prøv en gang til svaret er korrekt
Hvis du har spørgsmål til Unique Free så stil dem her viewforum.php?f=53
Brugeravatar
Kennith
VIP medlem
VIP medlem
 
Indlæg: 2511
Tilmeldt: 2007-04-30 01:15
Geografisk sted: Aalborg

Så problemet LØST :-)

Indlægaf terkelhansen » 2010-10-10 15:51

terkelhansen
Novice
Novice
 
Indlæg: 7
Tilmeldt: 2010-03-15 18:04


Tilbage til Generel debat

Hvem er online

Brugere der læser dette forum: Ingen tilmeldte og 18 gæster

cron