Note that there are some explanatory texts on larger screens.

plurals
  1. POHTML layout question?
    primarykey
    data
    text
    <p>I was just wondering I'm trying to display all a members friend requests in their own form for example, three friend requests will be displayed in three different forms or 20 friend requests will be displayed in 20 different forms and so on. The reason for this is because I want each friend request to have its own <code>Add Friend</code> or <code>Deny Friend</code> button. </p> <p><b>So my question is:</b> Is this a good way to display friend requests or is there a better way using HTML or PHP &amp; MySQL?</p> <p>Here is a code sample.</p> <pre><code>&lt;ul&gt; &lt;li&gt; &lt;form method="post" action="index.php" enctype="multipart/form-data"&gt; &lt;fieldset&gt; &lt;h3&gt;Someone wants to be your friend!&lt;/h3&gt; &lt;a href=""&gt;&lt;img src="./images/avatar.png" /&gt;&lt;/a&gt; &lt;input type="submit" name="add_friend" value="Add Friend" /&gt; &lt;input type="submit" name="deny_friend" value="Deny Friend" /&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;/li&gt; &lt;li&gt; &lt;form method="post" action="index.php" enctype="multipart/form-data"&gt; &lt;fieldset&gt; &lt;h3&gt;Someone wants to be your friend!&lt;/h3&gt; &lt;a href=""&gt;&lt;img src="./images/avatar.png" /&gt;&lt;/a&gt; &lt;input type="submit" name="add_friend" value="Add Friend" /&gt; &lt;input type="submit" name="deny_friend" value="Deny Friend" /&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;/li&gt; &lt;li&gt; &lt;form method="post" action="index.php" enctype="multipart/form-data"&gt; &lt;fieldset&gt; &lt;h3&gt;Someone wants to be your friend!&lt;/h3&gt; &lt;a href=""&gt;&lt;img src="./images/avatar.png" /&gt;&lt;/a&gt; &lt;input type="submit" name="add_friend" value="Add Friend" /&gt; &lt;input type="submit" name="deny_friend" value="Deny Friend" /&gt; &lt;/fieldset&gt; &lt;/form&gt; &lt;/li&gt; &lt;/ul&gt; </code></pre>
    singulars
    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.
    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