Jump to content

Basic question - Out put is not coming


raghavender_g

Recommended Posts

Hi,

 

I just started learning PHP... Below is my first programme infact..

 

Out put is not coming when i type some thing in input boxes...

 

Can somebody suggest where is the error...

 

Index.php

 

<html>

<head>

<title>Welcome to our site</title>

</head>

<body>

 

<form method="POST" action="submit.php">

<label for ="business_name">Business name</label>

<input type="text" id="business_name" \><br/>

<label for ="contact_person">Contact person</label>

<input type="text" id="contact_person" \><br/>

<label for ="Telephone">Telephone</label>

<input type="text" id="Telephone" \><br/>

<label for ="FAX">FAX</label>

<input type="text" id="FAX" \><br/>

<label for ="Mobile">Mobile</label>

<input type="text" id="Mobile" \><br/>

<label for ="Addres_line_1">Addres_line_1</label>

<input type="text" id="Addres_line_1" \><br/>

<label for ="Addres_line_2">Addres_line_2</label>

<input type="text" id="Addres_line_2" \><br/>

<label for ="Addres_line_3">Addres_line_3</label>

<input type="text" id="Addres_line_3" \><br/>

<label for ="Addres_line_4">Addres_line_4</label>

<input type="text" id="Addres_line_4" \><br/>

<label for ="City">City</label>

<input type="text" id="City" \><br/>

<label for ="Pin_code">Pin_code</label>

<input type="text" id="Pin_code" \><br/>

<label for ="State">State</label>

<input type="text" id="State" \><br/>

<label for ="email">email</label>

<input type="text" id="email" \><br/>

<input type="submit" value="Please submit the details" name="submit"/>

</form>

 

 

</body>

</html>

 

submit.php

 

 

 

<head><title>Your submission details</title></head>

<body>

<H3>YOU HAVE SUBMITTED THE FOLLOWING DETAILS</H3>

<?php

 

$business_name= $_POST["business_name"];

$contact_person = $_POST["contact_person"];

$Telephone = $_POST["Telephone"];

$fax = $_POST["FAX"];

$mobile = $_POST["Mobile"];

$address1 = $_POST["Addres_line_1"];

$address2 = $_POST["Addres_line_2"];

$address3 = $_POST["Addres_line_3"];

$address4 = $_POST["Addres_line_4"];

$city = $_POST["City"];

$pincode = $_POST["Pin_code"];

$state = $_POST["State"];

$email = $_POST["email"];

 

echo "Your business name".$business_name.'<br/>';

echo "Contact person".$contact_person.'<br/>';

echo "Telephone no.".$Telephone.'<br/>';

echo "Fax No.".$fax.'<br/>';

echo "Mobile No.".$mobile.'<br/>';

echo "Address line one".$address1.'<br/>';

echo "Address line two".$address2.'<br/>';

echo "Address line three".$address3.'<br/>';

echo "Address line four".$address4.'<br/>';

echo "Your City".$city.'<br/>';

echo "Your Pincode".$pincode.'<br/>';

echo "Your State".$state.'<br/>';

echo "Your email".$email.'<br/>';

?>

<a href=index.php>Home</a>

</body>

</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.