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
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>


Link to comment
Share on other sites

<?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)

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

<?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 :(

Link to comment
Share on other sites

<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>";



Link to comment
Share on other sites

<?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>";

?>

Link to comment
Share on other sites

<?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>";

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.