Hi I have a form with drop down boxes, tinymce and an ajax file up-loader I want to be able to submit the form and store all the data on a mysql db the trouble I have is I do not know how to reference the tinymce (they have a lack of decent documentation) or I am trying to over complicate things
The idea is a new job will be created and stored in a database for retrieval at a later date I want to be able to show the form contents and links to the files that were submitted
this is my form code - <div align="center" class="column1a">
-
-
<form method="post" action="<?=$_SERVER['REQUEST_URI']?>">
-
-
<div>
-
<div>
-
<?
-
echo "<form name=jobinfo>\n";
-
echo "Type : : <font id=type><select>\n";
-
echo "<option value='0'>== Type ==</option> \n" ;
-
echo "</select></font>\n";
-
-
echo "Dept : <font id=dept><select>\n";
-
echo "<option value='0'>== Dept ==</option> \n" ;
-
echo "</select></font>\n";
-
-
echo "Priority : <font id=priority><select>\n";
-
echo "<option value='0'>==== Priority ====</option> \n" ;
-
echo "</select></font>\n";
-
?>
-
-
<script language=Javascript>
-
function Inint_AJAX() {
-
try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) {} //IE
-
try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
-
try { return new XMLHttpRequest(); } catch(e) {} //Native Javascript
-
alert("XMLHttpRequest not supported");
-
return null;
-
};
-
-
function dochange(src, val) {
-
var req = Inint_AJAX();
-
req.onreadystatechange = function () {
-
if (req.readyState==4) {
-
if (req.status==200) {
-
document.getElementById(src).innerHTML=req.responseText; //ÃѺ¤èÒ¡ÅѺÁÒ
-
}
-
}
-
};
-
req.open("GET", "include/ajaxlist.php?data="+src+"&val="+val); //ÊÃéÒ§ connection
-
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
-
req.send(null); //Ê觤èÒ
-
}
-
-
window.onLoad=dochange('type', -1);
-
</script>
-
<br />
-
<br />
-
-
<textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 60%" class="tinymce"><?php echo $sContent;?></textarea>
-
</textarea>
-
</div>
-
-
<!-- Some integration calls -->
-
<!-- <a href="javascript:;" onmousedown="$('#elm1').tinymce().show();">[Show]</a>
-
<a href="javascript:;" onmousedown="$('#elm1').tinymce().hide();">[Hide]</a>-->
-
<div align="left" id="swfupload-control">
-
<p> Upload upto 5 files(jpg, png, gif, doc, docx, pdf,), each having maximum size of 5MB</p>
-
<input type="button" id="button" />
-
<p id="files" ></p>
-
<ol id="log"></ol>
-
</div>
-
-
-
<br />
-
<input type="submit" name="save" value="Submit" />
-
<input type="reset" name="reset" value="Reset" />
-
</div>
-
</form></pre></code>
I don't need to edit text from the tinymce I thought it made a nice text box I could just use a bog standard txtBox, and with regards to the ajax file upload I cannot figure out how to store the file locations
thanks
Mike
2 2055
I never used it, but, can't you just capture the data from the textarea?
------------------------------------- xatcom.net, diseño web
Most WYSIWYG editors simply hide your textarea and allow input into an area with HTML parsing. However, they keep the textarea updated. Like ~carmarri said, you only have to access the actual textarea.
If you do not know what part of the $_POST array it is in, print_r() the array.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: windandwaves |
last post by:
Hi Folk
This question has been bugging me for month. I have a website where people can enter stuff into a mysql database. Some of this
information will already be shown in some textareas and...
|
by: Michael Brennan-White |
last post by:
If I submit my for using a get action the resulting page loads . If I
use a post action I get an error page saying "The page cannot be
found". I am calling the originating page!!! This happens...
|
by: Greg T |
last post by:
Hi,
I have a rather long form that I don't want people submitting unless
they are absolutely sure they are ready.
I figured the easiest way to prevent an accidental form submission by
way of...
|
by: Don |
last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is
there some way, using JavaScript, to setup a <form> tag to do this?
Thanks,
Don
----==...
|
by: PhoenixJ |
last post by:
I have a question concerning ASP.NET 2.0 and MySQL. I would like to enter text into several text boxes in a Web form, and submit the information to a database through a "Submit" button control. I...
|
by: PhoenixJ |
last post by:
I have a question concerning ASP.NET 2.0 and MySQL. I would like to enter text into several text boxes in a Web form, and submit the information to a database through a "Submit" button control. I...
|
by: Super Steve |
last post by:
I'm trying to write a little script that disables the submit button on
a form, changes the text of the button, and then submits the form.
Can anyone tell me why this works ok:
<input...
|
by: NavinM |
last post by:
I have a couple of forms that are misbehaving in FireFox, but work fine in IE.
when i do submit( with submit button) a javascript function validates all of the fields entered, and stops the...
|
by: bleachie |
last post by:
Hi,
My e-mail form seems to work fine in IE7 but doesn't work in FireFox2.0 - it just goes to the index.php instead of echoing the completed message.
Hope someone can help me out.
Form.html...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |