Valhalla Legends Forums Archive | Web Development | Using PHP to send data to an HTML table

AuthorMessageTime
Chronix
Is there anyway to retrieve data from a page using $_GET and $_POST to insert a value into an HTML table?
February 21, 2008, 8:51 PM
Barabajagal
Like...
[code]<input type="text" value="<?php echo $_GET['Q']; ?>">[/code]
?
February 21, 2008, 8:53 PM
Chronix
I know this sounds really stupid, but what does the 'Q' represent?
February 21, 2008, 8:56 PM
Chronix
So under that column which I'm wanting to insert the data from another page I would use $_POST inside of the <td> </td> tags?
February 21, 2008, 9:00 PM
ProjecT
[quote author=ChroniX link=topic=17343.msg176594#msg176594 date=1203627361]
I know this sounds really stupid, but what does the 'Q' represent?
[/quote]

$_GET['Q']

Q = variable you request for example: site.com/?Q=blah

Q = 'blah'

March 23, 2008, 5:05 AM
iago
[quote author=Andy link=topic=17343.msg176593#msg176593 date=1203627236]
Like...
[code]<input type="text" value="<?php echo $_GET['Q']; ?>">[/code]
?
[/quote]
No!

[code]<input type="text" value="<?php echo htmlentities($_GET['Q']); ?>">[/code]

March 23, 2008, 3:07 PM

Search