Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get value of input type text of html in to php and print
    primarykey
    data
    text
    <p>Hi guys I have recently started php and I am stuck at a place where I a unable to get the value of input type of html to php. I am using Aptana to develop a website. please tell me where or what I am doing wrong. I didn't find any working answer in stackoverflow also. please help me.</p> <p>I am just viewing the HTML file in my browser is that a problem?</p> <p>my code is as below</p> <p>FirstWebPage.html</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;body bgcolor="#ffffff"&gt; &lt;h1 style="font-size:44pt" align="center"&gt;myPersonals.com&lt;/h1&gt; &lt;h2 align="center"&gt;Welcome to your personal data center &lt;/h2&gt; &lt;form action="welcome.php" method="get"&gt; &lt;div align="center"&gt; &lt;h3&gt;Login&lt;/h3&gt; &lt;input style="height:20px; width:200px; font-size:14pt" type="text" name="email" placeholder="Email" style="#b8b9c8"&gt; &lt;br&gt; &lt;br&gt; &lt;input style="height:20px; width:200px; font-size:14pt" type="text" name="password" placeholder="Password"&gt; &lt;br&gt; &lt;br&gt; &lt;select name="sex" style="height:30px; width:200px; font-size:14pt"&gt; &lt;option value="m"&gt;Male&lt;/option&gt; &lt;option value="f"&gt;Female&lt;/option&gt; &lt;/select&gt; &lt;br&gt; &lt;br&gt; &lt;input style="height:30px; width:200px; font-size:14pt" type="submit" value="Submit"&gt; &lt;br&gt; &lt;/div&gt; &lt;/form&gt; &lt;a href="bigDB.jpg"&gt; &lt;img src="smallDB.jpg"&gt;' &lt;/a&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Here is my welcome.php</p> <pre><code> &lt;html&gt; &lt;body&gt; Welcome php Surendra Reddy your email id is &lt;?php echo $_GET['email']; ?&gt;&lt;br&gt; and you are password is &lt;?php echo $_GET['password']; ?&gt;&lt;br&gt; and your gender id &lt;?php echo $_GET["sex"]; ?&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>But it is not printing the values</p> <p>Thanx in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload