• Welcome to Valhalla Legends Archive.
 

Using PHP to send data to an HTML table

Started by ChroniX, February 21, 2008, 02:51 PM

Previous topic - Next topic

ChroniX

Is there anyway to retrieve data from a page using $_GET and $_POST to insert a value into an HTML table?

Barabajagal

Like...
<input type="text" value="
<?php echo $_GET['Q']; ?>
">
?

ChroniX

I know this sounds really stupid, but what does the 'Q' represent?

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?

Archangel.

Quote from: ChroniX on February 21, 2008, 02:56 PM
I know this sounds really stupid, but what does the 'Q' represent?

$_GET['Q']

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

Q = 'blah'

aka: Archangel, i can't login into the account or request the password, weird problem.

iago

Quote from: Andy on February 21, 2008, 02:53 PM
Like...
<input type="text" value="
<?php echo $_GET['Q']; ?>
">
?
No!

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

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*