Jump to content

PHP form code


eaglelegend

Recommended Posts

whats wrong with my form code?  ???

 

   
<form>
<input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br>
<input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br>
<input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br>
</form>

Link to comment
https://forums.phpfreaks.com/topic/100941-php-form-code/
Share on other sites

i don't think u need the form tags...

 


<input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br>
<input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br>
<input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br>


<?php
include("header.php");
include("members.php");

$a = $_GET['action'];
$u = $_COOKIE['ELv2'];

print "<h2>Message Center</h2>";
print "
<input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br>
<input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br>
<input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br>

 

first 13 (inc form)

Oh, that's easy, then.

<?php
include("header.php");
include("members.php");

$a = $_GET['action'];
$u = $_COOKIE['ELv2'];
?>

<h2>Message Center</h2>

<input type='button' value='Send a New Message!' onClick='parent.location="/mail2.php?action=newmsg"' class='text_box'><br>
<input type='button' value='Inbox!' onClick='parent.location="/mail2.php?action=inbox"' class='text_box'><br>
<input type='button' value='Outbox!' onClick='parent.location="/mail2.php?action=outbox"' class='text_box'><br>

<?php

 

<?php
include("header.php");
include("members.php");

$a = $_GET['action'];
$u = $_COOKIE['ELv2'];

print "<h2>Message Center</h2>";
print "
<input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box'><br>
<input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box'><br>
<input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box'><br>";

 

damn boom.dk beat me to it :(

<input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='font-size:22px'><br>

 

just edit the "22"

 

full code:

<?php
include("header.php");
include("members.php");

$a = $_GET['action'];
$u = $_COOKIE['ELv2'];

print "<h2>Message Center</h2>";
print "
<input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box' style='font-size:22px'><br>
<input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box' style='font-size:22px'><br>
<input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='font-size:22px'><br>";



<?php
include("header.php");
include("members.php");

$a = $_GET['action'];
$u = $_COOKIE['ELv2'];

print "<h2>Message Center</h2>";
print "
<input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box' style='width: 200px'><br>
<input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box' style='width: 200px'><br>
<input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='width: 200px'><br>";

?>

<?php
include("header.php");
include("members.php");

$a = $_GET['action'];
$u = $_COOKIE['ELv2'];

print "<h2>Message Center</h2>";
print "
<input type='button' value='Send a New Message!' onClick='parent.location=\"/mail2.php?action=newmsg\"' class='text_box' style='width: 200px'><br>
<input type='button' value='Inbox!' onClick='parent.location=\"/mail2.php?action=inbox\"' class='text_box' style='width: 200px'><br>
<input type='button' value='Outbox!' onClick='parent.location=\"/mail2.php?action=outbox\"' class='text_box' style='width: 200px'><br>";

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.