Form Dosn't Submit In Opera - Works in IE and FireFox

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Form Dosn't Submit In Opera - Works in IE and FireFox

Arne-Christian
My form dosn't submit, it works in IE and FF, its validated HTML 4.01 and all,

Code:
CODE

<?
/**********************************/
/** Post Topic :: EvilBoard **/
/**********************************/

/* Session Start */
session_start();
/* Start Submit Script */
if ( isset($_POST['Submit'])) {
header("Refresh: 0; redirect.php?posttopic");
define("RELOADED","YES");
}
/* End Submit Script */
/* Include File::Header.php */
include("include/header.php");
echo "<br>";
/* If Script can't find SESSION user_name */
if ( !$_SESSION['user_name'] ) {
/* Echo :: Forbiden */
echo '<table width="100%" border="0" cellspacing="0" class="eb_forbit">
<tr>
<td><table width="100%" border="0" cellspacing="0">
<tr>
<td width="3%"><img src="Themes/Default/Images/forbid.gif" width="20"></td>
<td width="97%" class="eb_txt"> You must login to access this page. </td>
</tr>
</table></td>
</tr>
</table>';
## Include Login Script
include "login.php";
exit();
}
/* End !SESSION:user_name */
/* Start ELSEIF::SESSION:user_name */
elseif ( $_SESSION['user_name'] ) {
/* Include WYSIWYG JavaScript [openWYSIWYG] & Default CSS File */
echo '<script language="JavaScript" type="text/javascript" src="wysiwyg.js"></script>';
/* Start FORM::Submit */
if ( isset($_POST['gladz']) && !empty( $_POST['gladz'] ) ) {
/* Connect to DB */
dbconnect();
/* Get UserID */
$username = $_SESSION['user_name'];
$queryX = "SELECT * FROM `eb_members` WHERE `Username` = '$username'";
$getuserid = mysql_query( $queryX );
while( $getinfo21 = mysql_fetch_object( $getuserid ) ) {
global $userid;
$userid = $getinfo21 -> userid;
}
/* FORM::GET */
$title = $_POST['title'];
$desc = $_POST['desc'];
$forumid = $_GET['forumid'];
$message = $_POST['gladz'];
/* SQL::QUERY::eb_topic */
$query = "INSERT INTO `eb_topic` ( `UserID` , `title` , `TopicID` , `replays` , `desc` , `Username` , `ForumID` )
VALUES ('$userid', '$title', NULL , '0', '$desc', '$username', '$forumid');";
mysql_query($query);

$topicquery = "SELECT * FROM `eb_topic` ORDER BY `TopicID` DESC LIMIT 0,1";
$topic = mysql_query( $topicquery );
while ( $topicid = mysql_fetch_object ( $topic ) ) {
$topicid25 = $topicid -> TopicID;
/* SQL::QUERY::eb_post */
$sqlXY = "INSERT INTO `eb_post` ( `message` , `postdate` , `UserID` , `Username` , `PostID` , `TopicID` , `ForumID` , `title` )
VALUES (
'$message', NOW( ) , '$userid', '$username', '' , '$topicid25', '$forumid', '$title');";
mysql_query($sqlXY);
}
#}
}

include("functions/smiley.class.php");
$smiley = new smiley; ?>
<script language="javascript" type="text/javascript">
function insertHTML(html, n) {

var browserName = navigator.appName;

if (browserName == "Microsoft Internet Explorer") {
document.getElementById('wysiwyg' + n).contentWindow.document.selection.createRange().pasteHTML(html);
}

else {
var div = document.getElementById('wysiwyg' + n).contentWindow.document.createElement("div");

div.innerHTML = html;
var node = insertNodeAtSelection(div, n);
}

}
function emoticon(img) {
insertHTML(img, 'gladz');
}
</script>
<form name="sub" method="post" action="index.php?act=posttopic&forumid=<? $forumid = $_GET['forumid']; echo "{$forumid}"; ?>">
<table width="100%" border="0" align="center" cellspacing="0">
<tr>
<td width="100%" class="eb_forum">
<div align="center"><strong>Post Topic</strong></div></td>
</tr>
<tr>
<td class="eb_footer_orgin"> <table width="100%" border="0" cellspacing="0" class="eb_txt">
<tr>
<td width="19%" rowspan="2" valign="top"><? $smiley->click_smileys(); ?></td>
<td>Title:<br>
<input name="title" type="text" class="eb_header" style="width: 100%;">
Topic Description:<br>
<input name="desc" type="text" class="eb_header" id="desc" style="width: 100%;">
<br>
Message:<br></td>
</tr>
<tr>
<td width="81%"><textarea id="gladz" rows="10" cols="200" name="gladz" class="eb_header" style="hieght: 170px; width: 500px; color: #FFFFFF;"></textarea></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input name="Submit" type="submit" class="eb_header" value="Submit">
</div></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<script language="javascript1.2" type="text/javascript">
generate_wysiwyg('gladz');
</script>
<?php showfooter(); ?>

 

 

 


Reply

electron
Well it is submitting the POST VARS but you are redirecting it to another page so the POT Values dont get redirected.
Hence it is not working.

Instead of redirecting include the processing file in the same page if the $_POST['Submit'] is set or show the form.

I doubt that this is even working in Internet Explorer or FireFox as this is not a brower issue but a PHP issue.

Hope this works out.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. submit image ie firefox - 2.46 hr back. (1)
  2. form firefox with image submit select - 4.31 hr back. (1)
  3. type submit opera - 10.56 hr back. (1)
  4. firefox submit button text alignment - 67.84 hr back. (3)
  5. opera javascript submit form - 76.31 hr back. (1)
  6. javascript form submit opera - 81.46 hr back. (1)
  7. post formular value submit buttons opera - 82.87 hr back. (1)
  8. php image form ie - 88.48 hr back. (1)
  9. javascript firefox submit form - 98.08 hr back. (1)
  10. stop submit opera - 98.94 hr back. (1)
  11. submitting form javascript opera - 99.27 hr back. (1)
  12. opera form submit - 100.89 hr back. (1)
  13. opera form submit problem - 104.50 hr back. (1)
  14. getelementbyid wysiwyg - 117.19 hr back. (1)
Similar Topics

Keywords : form, dosnt, submit, opera, works, firefox

  1. Mozilla Out With Firefox 3 Beta 4
    The beta 4 version of FireFox 3 is out .. (1)
  2. Stop Double Post/submit
    (10)
    Hi Whats the best way of stopping a double post from occurring? Re-directs? I was hoping that
    there was another way because I am using smarty and with the current setup of my site implementing
    redirects would be a right pain. Thanks for any help. ....
  3. Getting Information From Submit Button
    I need to grab information from a submit button. (1)
    I basically have an array that uses characters as keys and has an integer value to it. I have a
    loop that outputs the list in that array. For each entry I want a a button to remove it. The button
    will submit the form to another page which contains the script to be able to remove it from the
    array. The infomation for the keys name is used for the buttons name value. Im not sure how you go
    about grabbing this information once on the submitted page. heres my code CODE
    echo("<form name='jobs' action='remove_job.php'>"); foreach....
  4. Help Improving My Login Script Code
    The code works okay...just not the authorization part (4)
    I have developed a piece of code /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
    alt="smile.gif" /> that is going to work as my login script for my website. I need some help making
    improvements and creating additional features. Here is my code: CODE <?php
    session_start(); $name = $_POST['username']; $password =
    $_POST['password']; $con =
    mysql_connect("localhost","myDbUser","myDbPassword");
        if(!$con)         {         die(&#....
  5. Making A Sig With Php
    just wondering how it works (7)
    I was just wondering how to make an image that uses stuff given to it by php, yet remains only an
    image - say I want the site's title in an image. I believe it has something to do with putting
    an index.php inside a folder called image.png or whatever. Am I right? thanks....
  6. Error Importing Sql Query Via Php
    Works in PHPmyAdmin (6)
    CODE     function sql()     {         $fp =
    fopen("sql.sql","r");         $sql =
    fread($fp,filesize("sql.sql"));         fclose($fp);
            return $sql;     } Thats $this->sql and here is the other source CODE
    function insert_sql()     {     if($_GET['insert'])  {
            $template = new template;         $db = new db;
            $db->connect();         $query = $this->sql();       ....
  7. Submit Restrictions
    Is there anyway to bypass this on my localhost? (21)
    This can be considered my first php page after a long while, I did a little basic php years ago and
    I have totally forgotten most of it. But I have come up with a page; a simple calculator if you will
    with the essential add, subtract, multiply and divide functions. When I load the page on my
    localhost, I get this error However when I upload it to trap17, there is no problem, please
    take a look http://darran.trap17.com/php/Calculator/calculator.php I know this does not matter
    but I want to find out where I went wrong on my first php page. The code listing for ....
  8. Request: Php Submit Script With Save In Host
    Get Picture form url (13)
    Hi all i want make one form whit php , when users submit there urls , then my site give one picture
    form url and save on my host ! how can do that ? thanks....
  9. Script Won't Work At Trap17 -- Version Differences?
    But works flawlessly in my machine... (12)
    Here is the code: CODE <?php $data_array = array(); $data_array2 =
    array(); $file_name = "menu_data.txt"; $handle =
    @fopen($file_name, "r"); if (!$handle)  {     echo "File
    Handle Not Available For Use"; exit;         } while (($data = fgetcsv(
    $handle, 1000, ",")) !== FALSE) {         if ( (strpos
    ($data[2],"$page=")))     {
                        $data_array[] =  t....
  10. Problem With Firefox Text Alignment
    (9)
    I just have a really simple annoyin prob with my site which I have only just noticed. If i view the
    site in IE the alignment is fine but when in Firefox it isnt properly aligned. The user searches the
    db and it returns a table with the results.. PHP Code: CODE echo '<br><table
    width="871" border="0" align="center" cellpadding="0"
    cellspacing="0"><tr><font face="Verdana, Arial, Helvetica,
    sans-serif" size="2"><strong>'; echo 'Artists beginning with
    '.$....
  11. Weird Error Messages In Opera
    (2)
    On the bottom of my site, I get weird error messages, but only in Opera (Not firefox or IE). The
    messages appears below the last include tag on my site, so they appear on the bottom of the page. I
    get two different messages: QUOTE ETag: "9e80b2- HTTP/1Date: Fri, 02 Sep 2005 11:48:28 GMT
    Server: Apache/2.0.52 (Unix) Connection: Keep-Alive Keep-Alive: timeout=1, max=98 ETag:
    "4b94ff-40c5-98ed0bc0" HTTP/1.1 200 OK Date: Fri, 02 Sep 2005 11:48:28 GMT Server: Apache/2.0.52
    (Unix) Last-Modified: Fri, 02 Sep 2005 11:48:26 GMT ETag: "4b9516-1be2-8a1f9680" Accept-Ranges: by....
  12. Browser Problems, Maybe?
    Firefox vs IE (6)
    Alright, I coded something the other day for the game I am working on making, and a few of my
    friends I allowed to get on it and test things out. Well....the ones that were on IE their
    characters were made but the User variable as in which account they were on just stayed blank, while
    with my friends that were on Firefox, everything worked fine and they could play perfectly... So I
    was wondering, with PHP sql codes being sent to the database, is there something special you have to
    do to make it work on both, or could it be a setting on the IE that was messing with it......
  13. $_post Without A Form
    Trying to post a value with using a submit button (9)
    Hey me again. Looks like im having trouble with php. THis time the solution should be easy but i
    just cant find it anywhere. I am trying to post a variable but i do not want to use a form because i
    hate the look of submit buttons for what i am using it for. I do not want to use javascript because
    of compatibility issues. If you know how to make a submit button look like a nomal text link that
    would work if you know how to send post data through an href that also would work. Or if you just
    know how to do it another way im open to suggestions. Thanks for all of your help....
  14. Music In Php
    i don't get how this works (4)
    Ok i went to a site to listen to music and instead of giving me some file with a mp3 extention they
    have .php with an id #. Like this.... http://www.emp3world.com/to_download.php?id=53465 i was
    wondering how would a person do this and what's the purpose of it? is it like for safety
    reasons?....
  15. Gasp! Something I Made Actually Works!
    It does! (7)
    http://jemclan.trap17.com/other/something.php Use "annylei" for the name and "something" for the
    pass.....

    1. Looking for form, dosnt, submit, opera, works, firefox

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for form, dosnt, submit, opera, works, firefox

*MORE FROM TRAP17.COM*
advertisement



Form Dosn't Submit In Opera - Works in IE and FireFox



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE