wRk posted on 2008-09-10 16:13:56 #
hey!
im busy with implementing the contact form as in the tutorial. Everythings works fine excepts 2 issues:
1) The form clears all the fields(the fields wich have been filled out) afer submitting when at least 1 field is empty and gives the error msg....
I tried some things with putting a value="" item to the form and giving it the $from , $email etc but no results...
2)Olaf, How did you get this overview of the form fields after summitting the form succesfully?
please help me out.
Vincent
The most popular forum posts:
Comments / discussions
Olaf posted on 2008-09-10 19:28:47 #
what is the html for your form?
wRk posted on 2008-09-10 21:15:31 #
The html, it´s inside the var $form:
$form = '<form id="cform">
<div>
<label for="name">Name</label>
<input style=" border:1px solid '.$color.'" name="name" type="text" id="name" size="25" maxlength=30 />
</div>
<div>
<label for="email">E-mail</label>
<input style=" border:1px solid '.$color.'" name="email" type="text" id="email" value="" size="25" maxlength=30 />
</div>
<div>
<label for="msg">Message</label>
<textarea style=" border:1px solid '.$color.'" name="msg" id="msg" cols="45" rows="5" ></textarea>
</div>
<div>
<input style=" border:1px solid '.$color.'" class="button" type="button" id="subbtn" value="Submit" onclick="xajax_myFunction(xajax.getFormValues(\'cform\'));" />
</div>
</form>';
In the tutorial problem 1 is also occurring..
Olaf posted on 2008-09-11 05:56:23 #
Hi,
it looks like that the page reloads.
do you get a message from the script (about the empty fields)?
maybe you post/PM the url?
Olaf posted on 2008-09-13 06:18:24 #
Here is an upgrade to fix the empty fields:
http://www.finalwebsites.com/forums/topic/phpxajax-contact-form-upgrade
majodesign posted on 2008-09-30 20:51:48 #
Hi all,
I'm getting the foolowing error.
FPDF error: Unable to find xref table - Maybe a Problem with 'auto_detect_line_endings'
PHPversion 5.2.6
All the setting to the files are right
I get the error if i have a empty file with only the following rules.
<?php
define("FPDF_FONTPATH", $_SERVER['DOCUMENT_ROOT']."/pdf/font/");
define("ORIG_SIDN_PDF", "registratiecontractnl.pdf");
//require($_SERVER['DOCUMENT_ROOT']."/config.php");
include("./pdf/fpdi.php"); // de locatie waar de fpdf bestanden moeten staan (je kan deze ook wijzigen)
class SIDN_contract extends fpdi {
var $os_system = "linux";
}
$contract = new SIDN_contract;
//echo ORIG_SIDN_PDF;
$contract->setSourceFile(ORIG_SIDN_PDF);
?>
When i uncomment the line $contract->setSourceFile(ORIG_SIDN_PDF); i'm not getting the error so i now that it have to do with the import.