Jump to content

php echoes content in adress bar instead of html content?


darksniperx

Recommended Posts

I have a form witch bunch of data that is was being submitted,

that form passes $_POST data to a class called form which orgenizes the data then calles different methods from class fusion which then puts the data in the database and echoes during successfull submit "1 row was added to table form", but instead of echo that message on the body of the form, it echoes in the adress bar when I try to submit the form a second time which results in this:

http://test.org/alex/test/1%20record%20added%20to%20%3Cb%3EEntry%3C/b%3E%3Cbr/%3E1%20record%20added%3Cbr/%3E1%20record%20added%3Cbr/%3E

 

anyway to fix this?

Link to comment
Share on other sites

index.php

<?php
include_once 'forms.php';
$webForm = "Entry"; //specify which form you want to work with
$form = new forms; // create an instance of selected class
$form->setFormData($webForm); // populate class variables selected form
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript; charset=UTF-8;" />
<title>Index Page!</title>
<?php
$form->outputHeaderData(); // echo any content in the head section
?>
</head>
<body <?php $form->ouputBodyAttributeData(); // echo any content that is suppose to be in body tag ?>>
<?php
$form->outputForm(); // echo any content in the body section
?>
</body>
</html>

 

Entry.php

<?php
function showEntry()
{
$form = new forms; // create an instance of selected class
?>
<form method="post" action="<?php $form->formSwitch(); ?>" onsubmit="validator()">

<h1>Welcome to Fusion Project!</h1>
<h3>You are about to create a news entry.</h3>
<h3>Remember that <font color='red'>*</font> means that the field is required and if you are an <u>advanced user</u><br/>
you can press <u>advanced button</u> to add a variety of options and other usefull information.</h3>
<hr />
<p><font color='red'>*</font><strong>Story Title <font size="-1">(Please enter a descriptive title for the story you're linking to.)</font></strong></p>
<p>
    <input type='text' name='title_text' size="100" />
...
</p>

 

forms.php

<?php
class forms
{
	var $script;
//temporary variables to use with forms
	var $js_script;
	var $css_script;
	var $body_onload_content;
	var $body_content;

function forms()
    {

	include_once 'fusion.php';
    	$this->fusion = new fusion;

    }
function formSwitch()
{
	if($_POST)
	{
		//when form is being submitted, the following verifyies which form then loads appropriate methods.
		if($_POST['form_feed_submit'])
		{
			$this->formFeed_submit();
		}
		else if($_POST['formEntry_submit'])
		{
			$this->formEntry_submit();
		}
		else if($_POST['form_person_submit'])
		{
			$this->formPerson_submit();
		}

		else if($_POST['form_category_submit'])
		{
			$this->formCategory_submit();
		}

		else if($_POST['form_link_submit'])
				{
					$this->formLink_submit();
		}
		else if($_POST['form_feed_edit'])
				{
					$this->formFeed_update_submit();
		}
		else
		{
			echo "nothing";
		}
	}
}

//sets variable data that will be later used in the forms
function setFormData($formName)
{
	include $formName . '.php';
	include '../scripts/' . $formName . '_js_script.php';
	$this->js_script = 'show' . $formName . 'JS';
	$this->body_onload_content = "onload='loader();'";
	$this->body_content = 'show'.$formName; 
}

//outputs data that is suppose to be in header tag
function outputHeaderData()
{
	echo "<script type='text/javascript'>";
	echo "\n";
	$x = $this->js_script;	
	$x();
	echo "</script>";
	echo "\n";	
}

//output data inside body tag
function ouputBodyAttributeData()
{
	echo $this->body_onload_content;
}

//writes form data to html file for the requested form
function outputForm()
{
	$x = $this->body_content;
	$x();
}

//prints the data from category table with check boxes

function printCategoryBoxes()
{
	$this->fusion->dbConnect();
	$this->fusion->selectDb();
	$category = mysql_query("SELECT * FROM category") OR die(mysql_error());
	while($cat = mysql_fetch_array($category))
	{
		echo "<label><input type='checkbox' name='cat_id[]' value='".$cat['cat_id']."'/>".$cat['c_label']."</label>";
	}
	$this->fusion->closeDbConnection();
}

//return uuid to the user
function getUUID()
{
	echo 'URN:UUID:' . strtoupper($this->fusion->getUUID());
}


function formEntry_submit()
{
$this->fusion->dbConnect();
$this->fusion->selectDb();

	$search = mysql_query("SELECT * FROM entry ORDER BY entry_id DESC");
	//get the next free entry spot
	$last = mysql_fetch_array($search);
	$newEntryNumber = $last['entry_id']+1;

	//set date to proper format
	$date = $_POST['published_yyyy']."-".$_POST['published_mo']."-".$_POST['published_dd']."T".
	$_POST['published_hh'].":".$_POST['published_mi'].":".$_POST['published_ss']."".$_POST['published_zone'];

	//insert into table entry
	$this->fusion->addToEntry($newEntryNumber,$_POST['e_base'],$_POST['e_lang'],
	$_POST['id_base'],$_POST['id_lang'],$_POST['id_uri'],
	$_POST['title_base'],$_POST['title_lang'],$_POST['title_type'],$_POST['title_text'],
	$_POST['updated_base'],$_POST['updated_lang'],$_POST['updated_date'],
	$_POST['content_lang'],$_POST['content_base'],$_POST['content_type'],$_POST['content_text'],
	$_POST['published_base'],$_POST['published_lang'],$date,
	$_POST['rights_base'],$_POST['rights_lang'],$_POST['rights_type'],$_POST['rights_text'],
	$_POST['summary_base'],$_POST['summary_lang'],$_POST['summary_type'],$_POST['summary_text'],"",
	$_POST['content_src'],$_POST['source_base'],$_POST['source_lang'],$_POST['source_metadata']);
}

 

fusion.php

<?php
class fusion
{
VAR $CON,$SQL;
VAR $database_location = 'localhost';
VAR $database = ****;
VAR $db_user = *****;
VAR $db_pass = *****;

//adding data to entry
function addToEntry(
	$entry_id,$e_base,$e_lang,$id_base,$id_lang,$id_uri,
	$title_base,$title_lang,$title_type,$title_text,
	$updated_base,$updated_lang,$updated_date,
	$CONtent_lang,$CONtent_base,$CONtent_type,$CONtent_text,
	$published_base,$published_lang,$published_date,
	$rights_base,$rights_lang,$rights_type,$rights_text,
	$summary_base,$summary_lang,$summary_type,$summary_text,$x_element,
	$content_src,$source_base,$source_lang,$source_metadata
)
{
	$SQL = "INSERT INTO entry (
		entry_id,e_base,e_lang,id_base,id_lang,id_uri,
		title_base,title_lang,title_type,title_text,
		updated_base,updated_lang,updated_date,
		content_lang,content_base,content_type,content_text,
		published_base,published_lang,published_date,
		rights_base,rights_lang,rights_type,rights_text,
		summary_base,summary_lang,summary_type,summary_text,x_elements,
		content_src,source_base,source_lang,source_metadata
		)
	VALUES (
		'entry_id','$e_base','$e_lang','$id_base','$id_lang','$id_uri',
		'$title_base','$title_lang','$title_type','$title_text',
		'$updated_base','$updated_lang','$updated_date',
		'$CONtent_lang','$CONtent_base','$CONtent_type','$CONtent_text',
		'$published_base','$published_lang','$published_date',
		'$rights_base','$rights_lang','$rights_type','$rights_text',
		'$summary_base','$summary_lang','$summary_type','$summary_text','$x_element',
		'$content_src','$source_base','$source_lang','$source_metadata'
		)";

	if (!mysql_query($SQL,$this->$CON))
  		{
  			die('Error: ' . mysql_error());
  		}
		echo "1 record added to <b>Entry</b><br/>";
}//end of addToentry();

 

*** forms.php and fusion.php are class, Entry.php echoes html content, index.php places html content in correct places.

Link to comment
Share on other sites

form generated

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Script-Type" content="text/javascript; charset=UTF-8;" />
<title>Index Page!</title>
<script type='text/javascript'>
function loader()
{
showAdvanced(this.form);
setPublishedDate();
publishedDate();
}
var showForm = "none";

function showAdvanced(current_form)
{

if(showForm == "none")
{
	document.getElementById("advancedTitle_table").style.display = "none";
	document.getElementById("id_table").style.display = "none";
	document.getElementById("publish_table").style.display = "none";
	document.getElementById("optionalData_table").style.display = "none";
	document.getElementById("optionalMetadata_table").style.display = "none";
	document.getElementById("attributes_table").style.display = "none";
	document.getElementById("showHide").value = "Show Advanced Options";
	showForm = "";
}
else
{
	document.getElementById("advancedTitle_table").style.display = "block";
	document.getElementById("id_table").style.display = "block";
	document.getElementById("publish_table").style.display = "block";
	document.getElementById("optionalData_table").style.display = "block";
	document.getElementById("optionalMetadata_table").style.display = "block";
	document.getElementById("attributes_table").style.display = "block";
	document.getElementById("showHide").value = 'Hide Advanced Options';
	showForm = "none";

}
}
//function to set published date
function setPublishedDate()
{


		document.getElementById("pub_year_id").value = '2007';
	document.getElementById("pub_month_id").value = '10';
	document.getElementById("pub_day_id").value = '24';
	document.getElementById("pub_hour_id").value = '13';
	document.getElementById("pub_min_id").value = '20';
	document.getElementById("pub_sec_id").value = '08';
	document.getElementById("pub_zone_id").value = '-04:00';

}

// These functions control the xml:base and xml:lang optional attributes
function xmlBase_cascade_display( current_form )
{
if ( current_form.entry_base_checkbox.checked == false )
{
	document.getElementById("xmlBase_cascade_option").style.display = "none";
	current_form.e_base.value = "";
	current_form.commonBASE_checkbox.checked = false;
}

if ( current_form.entry_base_checkbox.checked == true )
{
	document.getElementById("xmlBase_cascade_option").style.display = "block";
}
}//end of xmlBase_cascade_display()

//sets base to default settings
function setBASEDefault(value)
{
if(value == 'set')
{
	document.getElementById("entry_base_id").value = document.getElementById("e_base_id").value;
	document.getElementById("id_base_id").value = document.getElementById("e_base_id").value;
}

else
{
	document.getElementById("entry_base_id").value = '';
	document.getElementById("id_base_id").value = '';
}
}

//sets base to rest of the form
function setBASERest(value)
{
if(value == 'set')
{
	document.getElementById("title_base_id").value = document.getElementById("e_base_id").value;
	document.getElementById("updated_base_id").value = document.getElementById("e_base_id").value;
	document.getElementById("content_base_id").value = document.getElementById("e_base_id").value;
	document.getElementById("published_base_id").value = document.getElementById("e_base_id").value;
	document.getElementById("rights_base_id").value = document.getElementById("e_base_id").value;
	document.getElementById("summary_base_id").value = document.getElementById("e_base_id").value;
	document.getElementById("l_base_id").value = document.getElementById("e_base_id").value;
}
else
{
	document.getElementById("title_base_id").value = '';
	document.getElementById("updated_base_id").value = '';
	document.getElementById("content_base_id").value = '';
	document.getElementById("published_base_id").value = '';
	document.getElementById("rights_base_id").value = '';
	document.getElementById("summary_base_id").value = '';
	document.getElementById("l_base_id").value = '';
}
}


function setLANGDefault(value)
{
if(value == 'set')
{
	document.getElementById("entry_lang_id").value = document.getElementById("e_lang_id").value;
	document.getElementById("id_lang_id").value = document.getElementById("e_lang_id").value;
}
else
{
	document.getElementById("entry_lang_id").value = '';
	document.getElementById("id_lang_id").value = '';
}

}

function setLANGRest(value)
{
if(value == 'set')
{
	document.getElementById("title_lang_id").value = document.getElementById("e_lang_id").value;
	document.getElementById("updated_lang_id").value = document.getElementById("e_lang_id").value;
	document.getElementById("content_lang_id").value = document.getElementById("e_lang_id").value;
	document.getElementById("published_lang_id").value = document.getElementById("e_lang_id").value;
	document.getElementById("rights_lang_id").value = document.getElementById("e_lang_id").value;
	document.getElementById("summary_lang_id").value = document.getElementById("e_lang_id").value;
	document.getElementById("l_lang_id").value = document.getElementById("e_lang_id").value;

}
else
{
	document.getElementById("title_lang_id").value = '';
	document.getElementById("updated_lang_id").value = '';
	document.getElementById("content_lang_id").value = '';
	document.getElementById("published_lang_id").value = '';
	document.getElementById("rights_lang_id").value = '';
	document.getElementById("summary_lang_id").value = '';
	document.getElementById("l_lang_id").value = '';
}

}

function eBase_change( current_form )
{

current_form.entry_base_checkbox.checked = true;
document.getElementById("xmlBase_cascade_option").style.display = "block";

if ( current_form.e_base.value == '' )
{
	current_form.entry_base_checkbox.checked = false;
	current_form.commonBASE_checkbox.checked = false;
	document.getElementById("xmlBase_cascade_option").style.display = "none";
}
}//end of eBase_change()

function xmlLang_cascade_display( current_form )
{
if ( current_form.entry_lang_checkbox.checked === false )
{
	document.getElementById("xmlLang_cascade_option").style.display = "none";
	current_form.e_lang.options[0].selected = true;
	current_form.commonLANG_checkbox.checked = false;
}
if ( current_form.entry_lang_checkbox.checked === true )
{
	document.getElementById("xmlLang_cascade_option").style.display = "block";
}
}//end of xmlLang_cascade_display()

function eLang_change( current_form )
{
current_form.entry_lang_checkbox.checked = true;
document.getElementById("xmlLang_cascade_option").style.display = "block";

if ( current_form.e_lang.options[current_form.e_lang.selectedIndex].value == "none" )
{
	current_form.entry_lang_checkbox.checked = false;
	document.getElementById("xmlLang_cascade_option").style.display = "none";
	current_form.commonLANG_checkbox.checked = false;
}
}//end of eLang_change()


// This function controls the display of the table for entering Published data
function published_table_display( current_form )
{
if ( current_form.useUpdated.checked === true )
{
	document.getElementById("published_table").style.display = "none";
}

if ( current_form.useUpdated.checked === false )
{
	document.getElementById("published_table").style.display = "block";
}
}//end of published_table_display()

function rights_table_display( current_form )
{
if ( current_form.rights.checked === false )
{
	document.getElementById("rights_table").style.display = "none";
}

if ( current_form.rights.checked === true )
{
	document.getElementById("rights_table").style.display = "block";
}
}//end of rights_table_display()

function summary_table_display( current_form )
{
if ( current_form.summary.checked === false )
{
	document.getElementById("summary_table").style.display = "none";
}

if ( current_form.summary.checked === true )
{
	document.getElementById("summary_table").style.display = "block";
}
}//end of summary_table_display()

function publishedDate()
{
if(document.getElementById("date_type_off").checked == true)
{
	document.getElementById("pub_year_id").setAttribute("readonly", "true");
	document.getElementById("pub_month_id").setAttribute("readonly", "true");
	document.getElementById("pub_day_id").setAttribute("readonly", "true");
	document.getElementById("pub_hour_id").setAttribute("readonly", "true");
	document.getElementById("pub_min_id").setAttribute("readonly", "true");
	document.getElementById("pub_sec_id").setAttribute("readonly", "true");
	document.getElementById("pub_zone_id").setAttribute("readonly", "true");
	setPublishedDate();
	  
}
else
{
	document.getElementById("pub_year_id").readOnly='';
	document.getElementById("pub_month_id").readOnly='';
	document.getElementById("pub_day_id").readOnly='';
	document.getElementById("pub_hour_id").readOnly='';
	document.getElementById("pub_min_id").readOnly='';
	document.getElementById("pub_sec_id").readOnly='';
	document.getElementById("pub_zone_id").readOnly='';
}
}

function validator()
{

	if(document.getElementById("entry_base_checkbox_id").checked == true)
	{
		setBASEDefault('set');
	}
	if(document.getElementById("entry_base_checkbox_id").checked == false)
	{
		setBASEDefault('none');
	}

	if(document.getElementById("commonBASE_checkbox_id").checked == true)
	{
		setBASERest('set');
	}
	if (document.getElementById("commonBASE_checkbox_id").checked == false)
	{
		setBASERest('none');
	}
	if(document.getElementById("entry_lang_checkbox_id").checked == true)
	{
		setLANGDefault('set');
	}
	if(document.getElementById("entry_lang_checkbox_id").checked == false)
	{
		setLANGDefault('none');
	}
	if(document.getElementById("commonLANG_checkbox_id").checked == true)
	{
		setLANGRest('set');
	}
	if(document.getElementById("commonLANG_checkbox_id").checked == false)
	{
		setLANGRest('none');
	}
}
</script>
</head>
<body onload='loader();'>
<form method="post" action="" onsubmit="validator()">

<h1>Welcome to Fusion Project!</h1>
<h3>You are about to create a news entry.</h3>
<h3>Remember that <font color='red'>*</font> means that the field is required and if you are an <u>advanced user</u><br/>
you can press <u>advanced button</u> to add a variety of options and other usefull information.</h3>
<hr />
<p><font color='red'>*</font><strong>Story Title <font size="-1">(Please enter a descriptive title for the story you're linking to.)</font></strong></p>
<p>
   <input type='text' name='title_text' size="100" />
 </p>
<p><font color='red'>*</font><strong>Story Description <font size="-1">(Write your own description of the news story.)</font></strong></p>
<p>
 <textarea cols="75" rows="5" name="content_text" ></textarea>
 
</p>
<font color='red'><strong>*</strong></font><strong>Story Link <font size="-1">(Link that points to the source of the story.)</font></strong>
<p>
 <input type='text' name='l_href' size="100" />
</p>
<strong><font color="#FF0000">*</font>Categories:</strong>
<p>
<label><input type='checkbox' name='cat_id[]' value='1'/>Food</label><label><input type='checkbox' name='cat_id[]' value='2'/>Gas</label><label><input type='checkbox' name='cat_id[]' value='3'/>Religion</label><label><input type='checkbox' name='cat_id[]' value='4'/>Chips</label><label><input type='checkbox' name='cat_id[]' value='5'/>Drinks</label></p>

<p><strong>Authors and contributors.</strong></p>
<table width="438" border="0">
 <tr>
   <td width="210" colspan="2" ><font color="#FF0000">*</font>Author</td>
   <td width="210" colspan="2">Contributor</td>
 </tr>
 <tr>
   <td valign="top" >
	Name:<br/>
	E-mail:<br/>
	Website:<br/>      
</td>
   <td valign="top">
<input type="text" name="author_name" /><br/> 
<input type="text" name="author_email" /><br/> 
<input type="text" name="author_website" /><br/> 
</td>
   <td valign="top">
	Name:<br/>
	E-mail:<br/>
	Website:<br/>	
</td>
<td valign="top">
	<input type="text" name="contributor_name" /><br/>
	<input type="text" name="contributor_email" /><br/>
	<input type="text" name="contributor_website" /><br/>
</td>
 </tr>
</table>
<table id="advancedTitle_table" >
<tr>
<td>
	<hr />
	<h2>The following was activated by <u>advanced button</u> to add a variety of options and other usefull information.</h2>
	<hr />
</td>
</tr>
</table>

<table id="id_table">
<tr>
	<td><p><strong>Id for your entry:</strong></p>
	ID URI:
 <input type='text' name='id_uri' id='id_uri_id' size="55" value="URN:UUID:7B311F3F-444B-486F-9BC4-3DF17BA4E1EE" />
  </td></tr>
</table>

<table id="publish_table">
<tr>
	<td><p><strong>Published Date </strong></p>
	Published date:
	  <input type="text" id="pub_year_id"	name="published_yyyy"	size="4" />-
	  <input type='text' id="pub_month_id"	name='published_mo'		size="2" />-
	  <input type='text' id="pub_day_id"	name='published_dd'   	size="2" /> T
	  <input type='text' id="pub_hour_id" 	name='published_hh'		size="2"/>:
	  <input type='text' id="pub_min_id" 	name='published_mi'     size="2"/>:
	  <input type='text' id="pub_sec_id" 	name='published_ss'     size="2"/>.
	  <input type='text' id="pub_zone_id" 	name='published_zone'   size="6"/>
	  <br />
	  
	  <input type="radio" id="date_type_off" name="date_type" value="current_date" checked="checked" onclick="publishedDate();"/> 
	  Use current date and time! (upon submit the date and time will regen)
	  <input type="radio" id="date_type_on" name="date_type" value="custom_date" onclick="publishedDate();" /> 
	  Use custom date and time!
  </td></tr>
</table>

<table id="optionalData_table">
<tr>
	<td><p><strong>Optional Data</strong></p>
	  <input name="rights" id="rights" type="checkbox" onclick="rights_table_display( this.form );" />
			<u>Include Rights</u>
			<table id="rights_table"  style=" margin-left: 50px; display:none;">
				<tr>
					<td colspan="2">
						<h4>Copyright Text:</h4>
						<input type='text' name='rights_text' />
					</td>
				</tr>
				<tr>
					<td><b>Text Type</b></td>
				</tr>
				<tr>
					<td>
						<input type="radio" name="rights_type" value="Text" checked="checked"/> Text<br/>
						<input type="radio" name="rights_type" value="Html" /> Html<br/>
						<input type="radio" name="rights_type" value="XHtml"/> XHtml<br/>
					</td>
			</tr>
		</table>
		<br/>
		<input name="summary" id="summary"  type="checkbox" onclick="summary_table_display( this.form );" /> 
		<u>Include Summary</u>
		<table id="summary_table" style="margin-left: 50px; display:none;">
			<tr>
				<td colspan="2"><h4><font color='red'>*</font>Summary </h4>
					<textarea cols="75" rows="5" name="summary_text" ></textarea>
				</td>
	  		</tr>
		 	<tr>
				<td><b>Text Type</b></td>
			</tr>
			<tr>
				<td>
					<input type="radio" name="summary_type" value="Text" checked="checked"/> Text<br/>
					<input type="radio" name="summary_type" value="Html" /> Html<br/>
					<input type="radio" name="summary_type" value="XHtml"/> XHtml<br/>
				</td>
			</tr>
	</table>
  </td></tr>
</table>

<table id="optionalMetadata_table">

<tr>
<td><p><strong>Optional Metadata</strong></p>
  <p>
    <input name="entry_base_checkbox" id="entry_base_checkbox_id" type="checkbox" onclick="xmlBase_cascade_display( this.form );"/> 
    xml:base attribute for this AED: 
    <input type='text' id="e_base_id" name='e_base' onkeyup="eBase_change(this.form);" value=''  /> 
    </p>
		  
	<p id="xmlBase_cascade_option" style="margin-left: 50px; display:none">
	  <input name="commonBASE_checkbox" id="commonBASE_checkbox_id" type="checkbox"  /> 
	  Check the box if you want this attribute to cascade throughout the rest of the document.
    </p>
	  
	<p>
	  <input name="entry_lang_checkbox" id="entry_lang_checkbox_id" type="checkbox" onclick="xmlLang_cascade_display( this.form );" /> 
	  xml:lang attribute for this AED:
	  <select name='e_lang' id="e_lang_id" onchange="eLang_change( this.form );">
	    <option value ='none' selected="selected" ></option>
	    <option value ='EN'>English</option>
	    <option value ='FR'>French</option>
	    <option value ='RU'>Russian</option>
      </select>
    </p>
	  <p id="xmlLang_cascade_option" style="margin-left: 50px; display:none">
	    <input name="commonLANG_checkbox" id="commonLANG_checkbox_id" type="checkbox"  /> 
	    Check the box if you want this attribute to cascade throughout the rest of the document.
    </p>
     </td></tr>
</table>
<table id="attributes_table">
<tr>
	<td><p><strong>Attributes data types</strong></p>
	  <table>
	<tr>
		<th>Title Type</th>
		<th>Story Type</th>

	</tr>
	<tr>
		<td>
			<input type="radio" name="title_type" value="Text" checked="checked"/> Text<br/>
			<input type="radio" name="title_type" value="Html" /> Html<br/>
			<input type="radio" name="title_type" value="XHtml"/> XHtml<br/>
		</td>

			<td>
			<input type="radio" name="content_type" value="Text" checked="checked"/> Text<br/>
			<input type="radio" name="content_type" value="Html" /> Html<br/>
			<input type="radio" name="content_type" value="XHtml"/> XHtml<br/>
		</td>

	</tr>
	</table>
  </td></tr>
</table>
<table id="hidden_table" style="display:none">
<tr>
<td>
<input type="hidden" id="entry_base_id" name="entry_base" value="" />
<input type="hidden" id="id_base_id" name="id_base" value="" />
<input type="hidden" id="title_base_id" name="title_base" value="" />
<input type="hidden" id="updated_base_id" name="updated_base" value="" />
<input type="hidden" id="content_base_id" name="content_base" value="" />
<input type="hidden" id="published_base_id" name="published_base" value="" />
<input type="hidden" id="rights_base_id" name="rights_base" value="" />
<input type="hidden" id="summary_base_id" name="summary_base" value="" />
<input type="hidden" id="l_base_id" name="l_base" value="" />

<input type="hidden" id="entry_lang_id" name="entry_lang" value="" />
<input type="hidden" id="id_lang_id" name="id_lang" value="" />
<input type="hidden" id="title_lang_id" name="title_lang" value="" />
<input type="hidden" id="updated_lang_id" name="updated_lang" value="" />
<input type="hidden" id="content_lang_id" name="content_lang" value="" />
<input type="hidden" id="published_lang_id" name="published_lang" value="" />
<input type="hidden" id="rights_lang_id" name="rights_lang" value="" />
<input type="hidden" id="summary_lang_id" name="summary_lang" value="" />
<input type="hidden" id="l_lang_id" name="l_lang" value="" />

</td>
</tr>
</table>
<hr />
<h2>Ready to submit?</h2>
<p>Congratulations!  You are now ready to submit the data needed to create a new Atom Entry Document.  Clicking on the Submit button will first activate a validation function, which will make sure all required info is present prior to submitting it to the database. Also you can click advanced options button to perform advanced operations!</p>
<p>
<input type='reset' value='Reset' /> | 
<input name='formEntry_submit' type='submit' value='Submit' /> |
<input type="button" onclick="showAdvanced(this.form);" id="showHide" value="Show Advanced Options"  />

</p>

</form>
</body>
</html>

 

 

after first submit, it changes the data in form action tag.

<form method="post" action="1 record added to <b>Entry</b><br/>1 record added<br/>1 record added<br/>" onsubmit="validator()">

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.