0

ohhkk..

but i got this output now have a look..
title :
name :
lname :
address :
pin :
country :
contact :
email :
business :
type :
product :
staff :
checkbox : <br />
<b>Notice</b>: Undefined index: checkbox in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\3.php</b> on line <b>76</b><br />

checkbox2 : <br />
<b>Notice</b>: Undefined index: checkbox2 in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\3.php</b> on line <b>77</b><br />

checkbox3 : <br />
<b>Notice</b>: Undefined index: checkbox3 in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\3.php</b> on line <b>78</b><br />

checkbox4 : <br />
<b>Notice</b>: Undefined index: checkbox4 in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\3.php</b> on line <b>79</b><br />

checkbox5 : <br />
<b>Notice</b>: Undefined index: checkbox5 in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\3.php</b> on line <b>80</b><br />

radio : <br />
<b>Notice</b>: Undefined index: radio in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\4.php</b> on line <b>96</b><br />

color : <br />
<b>Notice</b>: Undefined index: color in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\4.php</b> on line <b>97</b><br />

webpage :
hosting : <br />
<b>Notice</b>: Undefined index: hosting in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\4.php</b> on line <b>99</b><br />

account :
web1 :
like :
web2 :
like2 :
brand : <br />
<b>Notice</b>: Undefined index: brand in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\4.php</b> on line <b>105</b><br />

images : <br />
<b>Notice</b>: Undefined index: images in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\4.php</b> on line <b>106</b><br />

text : <br />
<b>Notice</b>: Undefined index: text in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\4.php</b> on line <b>107</b><br />

lang : <br />
<b>Notice</b>: Undefined index: lang in <b>E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\4.php</b> on line <b>108</b><br />

camera :
video :
guestbook :
news :
dynamic :
blog :
feedback :
virtualtours :
additional :
brochures :
businesscards :
flyers :
pamphlet :
catalouge :
letterheads :
logodesign :
posters :
compliment :
annual :
newsletter :
calendar :
requirement :
textarea :
launch :
code :
verif_box :
button : Submit

0

this is my 3.php file

<?php error_reporting(E_ALL^E_NOTICE);?>
  <form id="form1" name="form1" method="post" action="mail.php">
  <span class="large">Do you currently have a website?<br></span>
  <br>
<input type='hidden' name='title' value='<?php echo $_POST['title']?>' /> 
   <input type='hidden' name='name' value='<?php  echo $_POST['name']?>' /> 
    <input type='hidden' name='lname' value='<?php echo $_POST['lname']?>' /> 
     <input type='hidden' name='address' value='<?php echo $_POST['address']?>' /> 
      <input type='hidden' name='pin' value='<?php echo $_POST['pin']?>' />  
      <input type='hidden' name='country' value='<?php echo $_POST['country']?>' /> 
       <input type='hidden' name='contact' value='<?php echo $_POST['contact']?>' /> 
        <input type='hidden' name='email' value='<?php echo $_POST['email']?>' />
        
        
   <input type='hidden' name='business' value='<?php echo $_POST['business']?>' /> 
    <input type='hidden' name='type' value='<?php echo $_POST['type']?>' /> 
     <input type='hidden' name='product' value='<?php echo $_POST['product']?>' /> 
      <input type='hidden' name='staff' value='<?php echo $_POST['staff']?>' />  
      <input type='hidden' name='checkbox' value='<?php echo $_POST['checkbox']?>' /> 
       <input type='hidden' name='checkbox2' value='<?php echo $_POST['checkbox2']?>' /> 
        <input type='hidden' name='checkbox3' value='<?php echo $_POST['checkbox3']?>' /> 
         <input type='hidden' name='checkbox4' value='<?php echo $_POST['checkbox4']?>' /> 
          <input type='hidden' name='checkbox5' value='<?php echo $_POST['checkbox5']?>' /> 
        
  <input type="radio" name="radio" value="1">yes - If 'yes', please specify website address<br> 

  <input name="website" type="text" id="textfield"  />
  <br>
  <span class="large"></span>
   </label>
    <span class="large">
    <label>
    <input type="radio" name="radio" value="0"> no - If 'no', what web address would you like?<br> 
    
 <span class="eg"><em>e.g www.limoservices.co.uk</em> </span><span class="large"><BR>
      <input name="no" type="text" id="textfield"  />
      <br>
      <br>
      How webpages are required?<br>

  <label><input type="radio" name="color" value="1" >1<br> 
<input type="radio" name="color" value="1">1-5<br> 
<input type="radio" name="color" value="1">5-25<br> 
<input type="radio" name="color" value="1"> large database site with 100's of pages<br> 
<input type="radio" name="color" value="1"> not sure <br> 

     
      <br>
      What webpages do you want on your website? <BR>
      (e.g.   galleries, about us, product, services , enquiry form, documents downloads,   video etc.) <br>
      <textarea name="webpage" id="textarea" cols="45" rows="5"></textarea>
      <br>
 
    <label><br>
   </label>
  
   <span class="large">Do you require web hosting?</span><br>
   <input type="radio" name="hosting" value="1" >yes<br> 
<input type="radio" name="hosting" value="1">no<br> 
<input type="radio" name="hosting" value="1">not sure<br> 
   
   <br>
   <span class="large">Do you require an email account?</span><span class="eg"><br>
  <em> e.g [email]info@limoservices.co.uk[/email]</em></span>

   <input name="account" type="text" id="textfield"  />
   <br>
   <br>
   <span class="large">Please provide web address links to websites that you would like your website to be similar </span><br>
   <br>
   <span class="large">Web address 1</span><br>
   <input name="web1" type="text" id="textfield"  />
   <br>
   <br>
   <span class="large">Explain why you like it </span><br>
   <textarea name="like" id="textarea" cols="45" rows="5"></textarea><br>
   </span><br>
<hr> <br>

   <span class="large">Web address 2</span><br>
   <input name="web2" type="text" id="textfield"  />
   <br>
   <br>
  
   <span class="large">Explain why you like it </span><br>
   <textarea name="like2" id="textarea" cols="45" rows="5"> </textarea><br><br>
   
      <span class="large">Do you have a logo or brand identity that you would like us to use? </span> <br>

      <input type= "radio" name="brand" value="1" >yes<br> 
<input type= "radio" name="brand" value="1">no<br> 
     
     <br>
     <span class="large">Do you have your own digital images that you would like us to use?<br></span>
     <label>
     <input type="radio" name="images" value="1" >yes<br> 
<input type="radio" name="images" value="1">no<br> 
     <input type="radio" name="images" value="1" >i would like help with images<br> <br>


     <span class="large">Do you have the text that is to be used on the website?</span><br>
     <label>
     <input type="radio" name="text" value="1" >yes<br> 
<input type="radio" name="text" value="1">no<br> 
<input type="radio" name="text" value="1">I would like help with the text<br> 
     
     <br>
     <span class="large">Does your website need to be in any multi-ethnic languages such as Punjabi,   Bangladeshi, Urdu, polish, French etc?</span><br>
     <label>
     <input type="radio" name="lang" value="1" >no<br> 
<input type="radio" name="lang" value="1">If 'yes', please specify<br> 
     
     <input name="yes" type="text" id="textfield" />
     <br>
     <br>
    
     <input name="Submit" type="submit" class="prev" id="button" value="Previous" onClick="funAgree()">
    </label>
    </label>
    <input name="button" type="submit" class="submitCopy" id="button" value="Next" onClick="funDisagree()" >
</form>
0

Did you set the below code because it doesn't look like it:

error_reporting(E_ALL ^ E_NOTICE);

Also did you use the $_SESSION array to retrieve the values?

0

i use this

<?php error_reporting(E_ALL^E_NOTICE);?>

ans how to use $_SESSION ?

0

hey i solved it i put the same value for all radio buttons thats y me silly girl.
thanks for ur help....

0
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
	// if verification code was correct send the message and show this page
	mail("you@email.com", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
	// delete the cookie so it cannot sent again by refreshing this page
	setcookie('tntcon','');
} else {
	// if verification code was incorrect then return to contact page and show error
	header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");
	exit;
}

it showing again and agian same page ...refresh the page ans again same page..

0

shouldn't your code be like this:

if(isset($_COOKIE['tntcon'])){
// if verification code was correct send the message and show this page
mail("you@email.com", 'Online Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
// delete the cookie so it cannot sent again by refreshing this page
setcookie('tntcon','',time()-1800);
} else {
// if verification code was incorrect then return to contact page and show error
header("Location:".$_SERVER['HTTP_REFERER']."?subject=$subject&from=$from&message=$message&wrong_code=true");
exit;
}
0

Notice: Undefined variable: subject in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 16

Notice: Undefined variable: message in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 16

Notice: Undefined variable: from in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 16

Warning: mail() [function.mail]: SMTP server response: 554 <you@email.com>: Recipient address rejected: Relay access denied in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 16

Notice: Undefined variable: subject in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 20

Notice: Undefined variable: message in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 20

Notice: Undefined variable: from in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 20

Warning: mail() [function.mail]: SMTP server response: 554 <you@email.com>: Recipient address rejected: Relay access denied in E:\domains\h\highweb.co.uk\user\htdocs\geeta\assignments\php\requirements-form\mail.php on line 20
Thanks - Email Send - Done

0

Again you need the following at the top of your page:

error_reporting(E_ALL ^ E_NOTICE);

And also make sure there is a valid email address in the email function.

0

hi...
can anyone tell me how to print title on every page.. i want to recieve a title of everypage but only in email that titile only will display on my email that i will get not anywhere else....

0

Are you talking about the email title/subject or webpage titlebar? Below is an example of both cases:

mail($1, $title, $3); //mail title
echo "<head><title>$title</title></head>";//html title bar
0

u know i m using 5 html forms so i want when i will get the output of 5 pages on my email how can i identify which ifromation is realted to which form thats y i need to display a title that will breakup the pages like :-
YOUR DETAILS(title)

title : MR
name :
lname :
address : LONDON
pin :
country : UK
contact :
email :


YOUR BUSINESS(title)

business :
type :
product :
staff : UJFYHDD
checkbox : a
checkbox2 :
checkbox3 : c
checkbox4 :
checkbox5 : e

YOUR WEBSITE(title)

radio : 1
color : 1
webpage : NA
hosting : 1
account :
web1 : HTTP://WWW.YAHOO.COM
like :
web2 : HTTP://WWW.YAHOO.COM

like2 :
brand : 1
images : 1
text : 1

lang : 0

want to display like above..any idea?

0

Simply add them manually (script wise) to the $message variable. If you like, you can post what you have assigned to the $message variable and I shall correct it to the above design for you!

0
<?php
$body = "";
foreach($_POST as $key => $value) {
	$body .= "$key : $value \n";
}
mail("yourmail.com", "Enquiry", $body, "From: [email]webmaster@yahoo.co.uk[/email]");


?>

Thanks - Email Send - Done

this is my final script that get information from all 5 html forms
where i put $mesaage?

0

below is a way of assigning each value to the variable but replace the term html_field_name with the name of the html field.

$message="YOUR DETAILS

title : ".$_SESSION['html_field_name']."
name : ".$_SESSION['html_field_name']."
lname : ".$_SESSION['html_field_name']."
address : ".$_SESSION['html_field_name']."
pin : ".$_SESSION['html_field_name']."
country : ".$_SESSION['html_field_name']."
contact : ".$_SESSION['html_field_name']."
email : ".$_SESSION['html_field_name']."


YOUR BUSINESS

business : ".$_SESSION['html_field_name']."
type : ".$_SESSION['html_field_name']."
product : ".$_SESSION['html_field_name']."
staff : ".$_SESSION['html_field_name']."
checkbox : ".$_SESSION['html_field_name']."
checkbox2 : ".$_SESSION['html_field_name']."
checkbox3 : ".$_SESSION['html_field_name']."
checkbox4 : ".$_SESSION['html_field_name']."
checkbox5 : ".$_SESSION['html_field_name']."

YOUR WEBSITE

radio : ".$_SESSION['html_field_name']."
color : ".$_SESSION['html_field_name']."
webpage : ".$_SESSION['html_field_name']."
hosting : ".$_SESSION['html_field_name']."
account : ".$_SESSION['html_field_name']."
web1 : ".$_SESSION['html_field_name']."
like : ".$_SESSION['html_field_name']."
web2 : ".$_SESSION['html_field_name']."

like2 : ".$_SESSION['html_field_name']."
brand : ".$_SESSION['html_field_name']."
images : ".$_SESSION['html_field_name']."
text : ".$_SESSION['html_field_name']."

lang : ".$_SESSION['html_field_name'];

Also if that doesn't work, make sure the following code is in tack on all pages that receive the $_POST.

foreach($_POST AS $keyzz => $valzz) {
$_SESSION[$keyzz]=$valzz;
}
0

that above code doesnot working,,,

tell me any simple method so that it will display Your details , your business title ....

0

that above code doesnot working,,,

tell me any simple method so that it will display Your details , your business title ....

Well that probably means that a- you haven't placed the foreach loop in my previous post in all 5 files or b- you did not use the html field names inside the session array or c- you did not put session_start() at the beginning of all 5 files.

If you want a simpler method then first you may want to remove the foreach loop mentioned in my previous post from all your pages. Then place session_start(); at the top of all of your pages if it does not allready exist. After that place the following code on the next line below session start on page 2:

foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa1'][$keyzz]=$valzz;
}

Then line below session start on page 3:

foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa2'][$keyzz]=$valzz;
}

Then line below session start on page 4:

foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa3'][$keyzz]=$valzz;
}

Then line below session start on page 5

foreach($_POST AS $keyzz => $valzz) {
$_SESSION['aa4'][$keyzz]=$valzz;
}

In case you are wondering, page 1 is the first form page and page 2 is second page which has had $_POST submitted to it untill page 5 which display or whatever the results while receiving the posts. Now for the message, the following will do the trick:

$body="title1 \n";
foreach($_SESSION['aa1'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}
unset($keyaa);
unset($valaa);
$body="title2 \n";
foreach($_SESSION['aa2'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}
unset($keyaa);
unset($valaa);
$body="title3 \n";
foreach($_SESSION['aa3'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}
unset($keyaa);
unset($valaa);
$body="title4 \n";
foreach($_SESSION['aa4'] AS $keyaa => $valaa) {
$body.="$keyaa : $valueaa \n";
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.