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>


Link to comment
https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516191
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
https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516212
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
https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516214
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
https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516217
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
https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516242
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
https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516254
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
https://forums.phpfreaks.com/topic/100941-php-form-code/#findComment-516266
Share on other sites

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.