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.

contactform problem ...

Featured Replies

	$salutation = $_POST['salut'];
$fname = $_POST['fromname'];
$fmail = $_POST['frommail'];
$subject = $_POST['mailsubject'];
$message = $_POST['mailtext'];

echo($fname);

if (empty($fname) == true)
{
	$fname_style = "marked";
	header("location:contactform.php");
	echo ('is leer');
	exit();
}

 

why does this not send me back to contactform.php ???

It's not allowed to display anything before the header command.

 

therefore you need to remove

 

echo($fname);

 

 

 

	$salutation = $_POST['salut'];
$fname = $_POST['fromname'];
$fmail = $_POST['frommail'];
$subject = $_POST['mailsubject'];
$message = $_POST['mailtext'];

echo($fname);

if (empty($fname) == true)
{
	$fname_style = "marked";
	header("location:contactform.php");
	echo ('is leer');
	exit();
}

 

why does this not send me back to contactform.php ???

  • Author

thx I got it =)

but there is another problem ...

 

if (empty($fname) == true)
{
	global $fname_style;
	$fname_style = "marked";
	header("location:contactform.php");
	exit();
}

 

the css says

.marked {border	: solid 3px #AB0000;}

 

and the php-form ...

<td width=100%><input type="text" name="fromname" size=50 maxlength=120 value="" class="<?php echo ($fname_style); ?>"></td>

 

if this is empty the color of the border should change ... but it does not ??? Where is my mistake ??? I think with class="<?php echo ($fname_style); ?> but I am not sure ...

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.