Need to have a grid for input form with php!!

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
Snaek
New php-forum User
New php-forum User
Posts: 11
Joined: Sat Dec 29, 2012 6:02 pm

Re: Need to have a grid for input form with php!!

Post by Snaek » Tue Jan 01, 2013 9:19 pm

Hello, here is a code outputting basically what you have made with text in your post.

Code: Select all

<?php
	echo "<table border='1'>";
	echo "<tr><td>Label1</td><td>Label2</td><td>Label3</td><td>Label4</td></tr>";
	echo "<tr><td><input type='text' /></td><td><input type='text' /></td><td><input type='text' /></td><td><input type='text' /></td></tr>";
	echo "<tr><td>Label1</td><td>Label2</td><td>Label3</td><td>Label4</td></tr>";
	echo "<tr><td><input type='submit' value='button1' /></td><td><input type='submit' value='button2' />";
	echo "</table>";
?>
You can edit this and remove the border as well if you like.
Happy PHPing!

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests