Log in form flash/php
hello kirupa forum world.
I've been trying to figure out how to have a log in form in
flash-- All I really need is to have a username and pass, I need to
pass the varibles to a php page(info.php) and this php page then
does all the work, checks the database all that fun stuff and sends
the site to another page(lets say index2). Now I'm not really sure
what I'm doing on this.
any suggestions?
thanks,
hutch
Just read about Flash LoadVars.
It will help you...
Similar Messages
-
I NEED HELP! Making a flash email form using php.
Hi, my name is Sean, I'm making a flash contact form using php for a website.
I'm having a hard time with the php. Can some one help?
Click here to download my source.Satellite A505-S6005
ACPI Flash BIOS version 1.40 for Satellite A500/A505 (PSAT6U/PSAT9U)
When you execute the download file (sat6v140.exe) it decompresses into several files in the sat6v140 folder.
Among those, is the readme.txt attached, which explains how to create the CD.
Burn a CD or DVD from an ISO file
-Jerry
Attachments:
readme.txt 14 KB -
hi all - i have an AS2 contact form using php to send the info to my email address - it all works fine except this ..... rather than having an empty comments box in the flash movie i had added a whole bunch of feedback questions that the user can comment yes/no to in the comments box (my feedback questions were added into the input text box in cs3 so are there when the user opens the contact page .. i have set the maximum characters to 10000 so no worries that its that that is stopping it all coming through in the email ..... basically when i go to my form online and send it i get it through as an email but with only three quarters of the feedback text in it ...... i have tried a zillion ways a round this, tried other contact forms and php and always end up with the same problem ... any ideas any one ?
this is the AS....
stop();
a =0;
function validate () {
if (from.length>=7) {
if (from.indexOf("@")>0) {
if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
if (from.lastIndexOf(".")<(from.length-2)) {
a = 1;
// email is fine
function formcheck () {
validate ();
trace(a);
if (fname = "" or telno eq "" or comments eq "" or from eq "") {
stop();
error = "You have left blank fields, please fill in all fields, thank you";
} else {
emailcheck ();
function emailcheck (){
if (a != 1){
stop();
error = "Email address not valid";
} else {
loadVariablesNum("mail.php3", 0, "POST");
gotoAndStop(2);
..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
mail("$adminaddress","Info Request",
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
?>
any help much appreciatedi think you should not use $HTTP_USER_AGENT.
and use loadvars instead of loadvariablesnum:
stop();
a =0;
function validate () {
if (from.length>=7) {
if (from.indexOf("@")>0) {
if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
if (from.lastIndexOf(".")<(from.length-2)) {
a = 1;
// email is fine
function formcheck () {
validate ();
trace(a);
if (fname = "" or telno eq "" or comments eq "" or from eq "") {
stop();
error = "You have left blank fields, please fill in all fields, thank you";
} else {
emailcheck ();
var sendLV:LoadVars=new LoadVars();
function emailcheck (){
if (a != 1){
stop();
error = "Email address not valid";
} else {
sendLV.name=fname;
sendLV.telno=telno;
sendLV.company=company; //assuming company is a variable in your flash
sendLV.comments=comments;
sendLV.send("mail.php3", "POST");
gotoAndStop(2);
//..........this is the php
<?php
$adminaddress = "[email protected]";
$sitename = "Flash Site Form Mailer";
$from=?;//you need to define this variable
$name=$_POST['name'];
$telno=$_POST['telno'];
$company=$_POST['company'];
$comments=$_POST['comments'];
$body=
"A customer at $sitename has made the following enquiry\n
First Name: $name
Company Name: $company
Telephone: $telno
Email: $from\n
The visitor commented:
$comments";
mail($adminaddress,"Info Request",$body);
?> -
Radio Buttons for Flash PHP email.
Hi.
I need to add a sign-up form for services to a flash AS2 web site.
I found a very simple example of a Flash/ PHP email form at Kirupa.
It works fine, but I need to add some radio buttons.
My web site will offer various services.
Ideally I would like to be able for viewers to sign up for a service by clicking the appropriate right radio buttons
F.ex;
• Service 1
• Service 2
• Service 3
• Service 4
The email should reflect the choices made by listing the text on the selected services (radio buttons).
Please download the FLA and the PHP file (at the bottom of the tutorial) here:
http://www.kirupa.com/developer/actionscript/flash_php_email.htm
I have uploaded a working version here:
http://gggraphic.com/flash_mail/simple_flash_mail.php
How do I add and script the radio buttons with both AS and the PHP to make it happen?
Thank you on beforehand for your help
ggaardeHi Again
Maybe check buttons would be a more natural option for this. You should be able to select more than one service.
Thanks
ggaarde -
How well does Flash & PHP mix?
I haven't worked much with forms yet in Flash. The existing
site that I'm replacing with a flash site uses some PHP to interact
with a MySQL database. It is for an email list that users can
sign-up for or remove themselves. I'm wondering if I will be able
to still (at least somewhat easily) do the same thing through
Flash. Here's the code currently used:
<?php
switch ($_GET['a']) {
case "s":subscribe();break;
case "r":remove();break;
default: subscribe();
function subscribe() {
require_once 'database.php';
require_once 'admin/lib.php';
$db = new Database('eaglebro_lists');
$show_form = true;
if ($_POST) {
if (is_email($_POST['email'])) {
$email = format_email($_POST['email']);
$uniqid = make_uniqid();
$db->query("REPLACE users (name, email, uniqid, created)
VALUES ('$_POST[name]','$email','$uniqid',NOW()) ");
$id = mysql_insert_id($db->db);
$db->query("REPLACE subscriptions (listid, userid,
created) VALUES ('11','$id',NOW()) ");
$show_form = false;
echo '<h3>Success!</h3><p>Thank you for
subscribing to the Route 212 email newsletter!</p><hr
/><p><a href="/">Route 212 Home
Page</a></p>';
} else {
echo "<h3>Error!</h3><p>The email address
you entered appears to be invalid. Check for any errors and submit
the form again.</p><hr />";
if ($show_form == true) {
?>
<p>Sign up to receive periodic email about Route 212
events and news.</p>
<form method="post"
action="/interact/updates.html?a=s">
<p>
<label class="m"
for="f_name">Name:</label><input id="f_name"
type="text" class="text m" name="name" />
<label class="m"
for="f_email">Email:</label><input id="f_email"
type="text" class="text m" name="email" />
<p><input id="f_submit" type="submit" class="button
s" value="Subscribe" /></p>
</form>
<?php
function remove() {
require_once 'database.php';
$db = new Database('eaglebro_lists');
//if email address is provided
if ($_GET['uid'] && $_GET['lid']) {
//perform database removal and show confirmation
$id = $db->query_fetch("SELECT id FROM users WHERE
uniqid='$_GET[uid]'");
$db->query("SELECT * FROM subscriptions WHERE
userid='$id[id]' AND listid='$_GET[lid]'");
if (mysql_num_rows($db->result)) {
$db->query("DELETE FROM subscriptions WHERE
userid='$id[id]' AND listid='$_GET[lid]'");
$list = $db->query_fetch("SELECT name FROM lists WHERE
id='$_GET[lid]'");
echo "<h4>Unsubscription
Successful</h4><p>You have been removed from the
following list: <b>$list[name]</b></p>";
echo '<hr /><p><a href="/">Route 212 Home
Page</a></p>';
} else {
$list = $db->query_fetch("SELECT name FROM lists WHERE
id='$_GET[lid]'");
echo "<h4>Cannot Unsubscribe</h4><p>You
have either already unsubscribed from the following list:
<b>$list[name]</b>, or an
error has occured.</p>";
echo '<hr /><p><a href="/">Route 212 Home
Page</a></p>';
} else {
echo "<h4>Cannot Unsubscribe</h4><p>There
is information missing.</p>";
echo '<hr /><p><a href="/">Route 212 Home
Page</a></p>';
?>Josh,
I'm much more comfortable with PHP that Flash too. You won't
have a problem getting the two to work together. Its pretty easy
actually.
The key in my limited experience is to have your PHP to run
as normal and then communicate what you want to display to the user
via one of Flash's external data connection classes. There is a
great chapter on this in the book "flash 8 action script" by Adobe
--- the easiest way is to just use the "loadVars" class to accept a
string you've generated as output of your PHP file in the format:
&variable = data &variable = data etc...
Also here is a good site with an example I've found that was
helpful in getting the two languages to work together:
http://webmonkey.wired.com/webmonkey/03/40/index0a_page3.html?tw=programming
This example actually walks you through the communication
between all 3 --> MySQL, PHP and Flash.
Good luck!!
Tom -
How to send Parameters FORM to PHP WEB Page with method POST (secure)?
Hello everyone,
i hope someone can help me to find a solution to this problem!
i have to send "+precious+" parameters from an oracle form to php page, like username and password, with a secure method... i tried with WEB.SHOW_DOCUMENT procedure but it uses GET Method and when the web page open up you can read those parameters in the url...no good!
some suggestion?
Thank a lot in advance... FMicioThe other way you have is to make a PJC java bean ...
which uses HTTPClient library..
for example:
PostMethod post = new PostMethod("http://jakarata.apache.org/");
NameValuePair[] data = {
new NameValuePair("user", "joe"),
new NameValuePair("password", "bloggs")
post.setRequestBody(data);
// execute method and handle any error responses.
InputStream in = post.getResponseBodyAsStream();
// handle response.I have done a multipart form data post to upload files to my db over httpClient.. and other things...
Or with java.net.* api-s
try {
// Construct data
String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
// Send data
URL url = new URL("http://hostname:80/cgi");
URLConnection conn = url.openConnection();
conn.setDoOutput(true);
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
wr.write(data);
wr.flush();
// Get the response
BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
String line;
while ((line = rd.readLine()) != null) {
// Process line...
wr.close();
rd.close();
} catch (Exception e) {
}Or you can call your web page (post data) from your database
http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
Edited by: Peterv6i on Mar 30, 2012 3:49 PM
Edited by: Peterv6i on Mar 30, 2012 3:55 PM -
Contact form-checkbox PHP coding doesnt work
I am a beginner to web page design so i would be grateful if you can explain to me what PHP coding i would need for 'Checkbox' and where to place it in the PHP coding below. I can submit the form to my email with all the headings and the filled in forms with checkbox Yes or No.
Only problem i have is that part of the check box info appear right at the top of the email message rather than the 'Name', 'Tel', 'Email' etc..Another half of the checkbox appear where it suppose to be wih double heading as shown below. I would also like to remove the <br> from the email message. Can you also tell me how to change the colour for heading so its clear.
I have marked the checkbox code in BLUE for both HTML and PHP coding below. Sorry for the long coding. Look forward to hearing from someone. Much appreciated.
Message delivered to the email address as received:
Rear ground extension: Yes
Two-storey rear extension: Yes
Two-storey side extension: No
Loft: Yes
New Build: Yes
Other: Yes
Name: Test<br>
Email: [email protected]<br>
Contact No: 87576as<br>
Address1: addy1<br>
Address2: addy2<br>
Town: town<br>
County: county<br>
Postcode: post<br>
Property Type: Cottage<br>
Property Area: None<br>
Message:<br>
test msg
My HTML coding for the form:
<div class="contactForm">
<form id="form1" name="form1" method="post" action="test2.php">
<fieldset>
<legend><strong>Personal Information</strong></legend>
<table width="690" border="0">
<tr>
<td width="340"><p>
<label for="name" class="contactLable">Name:</label>
<input name="name" type="text" id="name" tabindex="10" size="30" />
</p></td>
<td width="340"><p>
<label for="contact_number" class="contactLable">Contact No:</label>
<input name="contact_number" type="text" id="contact_number" tabindex="20" size="30" />
</p></td>
</tr>
</table>
<table width="690" border="0">
<tr>
<td><p>
<span id="sprytextfield1">
<label for="email" class="contactLable">Email:</label>
<input name="email" type="text" id="email" tabindex="30" size="30" />
<span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span> </p></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><strong>Project Information</strong></legend>
<p><table width="690" border="0">
<tr>
<td width="340"><p>
<label for="address1" class="contactLable">Address 1:</label>
<input name="address1" type="text" id="address1" tabindex="40" size="30" />
</p></td>
<td width="340"> <p>
<label for="address2" class="contactLable">Address 2:</label>
<input name="address2" type="text" id="address2" tabindex="50" size="30" />
</p></td>
</tr>
<tr>
<td><p>
<label for="town" class="contactLable">Town:</label>
<input name="town" type="text" id="town" tabindex="60" size="30" />
</p></td>
<td><p>
<label for="county" class="contactLable">County:</label>
<input name="county" type="text" id="county" tabindex="70" size="30" />
</p></td>
</tr>
<tr>
<td><p>
<label for="postcode" class="contactLable">Post Code:</label>
<input name="postcode" type="text" id="postcode" tabindex="80" size="10" />
</p></td>
<td> </td>
</tr>
<tr>
<td><p>
<label for="propertyType" class="contactLable">Property Type:</label>
<select name="propertyType" id="propertyType" tabindex="90">
<option>Please select</option>
<option>Detached</option>
<option>Semi-Detached</option>
<option>End of Terrace</option>
<option>Mid-Terrace</option>
<option>Flat</option>
<option>Bungalow</option>
<option>Cottage</option>
<option>Other</option>
</select>
</p></td>
<td><p>
<label for="propertyArea" class="contactLable">Property Area:</label>
<select name="propertyArea" id="propertyArea" tabindex="100">
<option>Please select</option>
<option>None</option>
<option>Listed Building</option>
<option>Conservation Area</option>
</select>
</p></td>
</tr>
</table>
</p>
</fieldset><fieldset><legend><strong>Project Type</strong></legend>
<table width="690">
<tr>
<td width="338"><label>
<input name="rearExt" type="checkbox" class="contactCheckbox" id="CheckboxGroup1_0" tabindex="110" value="rearExt"/>
Rear ground extension</label></td>
<td width="340"><input name="sideExt" type="checkbox" class="contactCheckbox" id="CheckboxGroup1_1" tabindex="120" value="sideExt"/>
Side ground extension</td>
</tr>
<tr>
<td><input name="twoStoreyRear" type="checkbox" class="contactCheckbox" id="twoStoreyRear" tabindex="130" value="twoStoreyRear"/>
Two-storey rear extension</td>
<td><input name="twoStoreySide" type="checkbox" class="contactCheckbox" id="twoStoreySide" tabindex="140" value="twoStoreySide"/>
Two-storey side extension</td>
</tr>
<tr>
<td><input name="loft" type="checkbox" class="contactCheckbox" id="loft" tabindex="150" value="loft"/>
Loft conversion </td>
<td><input name="newBuild" type="checkbox" class="contactCheckbox" id="newBuild" tabindex="160" value="newBuild"/>
New build </td>
</tr>
<tr>
<td><input name="flat" type="checkbox" class="contactCheckbox" id="flat" tabindex="170" value="flat"/>
Flat conversion</td>
<td><input name="other" type="checkbox" class="contactCheckbox" id="other" tabindex="180" value="other"/>
Other conversion</td>
</tr>
</table>
</fieldset>
<fieldset><legend><strong>Message</strong></legend>
<p>
<label for="message" class="contactLable">Your Message or Comments:</label>
<textarea name="message" id="message" cols="45" rows="5" tabindex="190"></textarea>
</p>
</fieldset>
<br />
<input type="submit" name="Sumbit" id="Sumbit" value="Submit" tabindex="200" />
</form>
</div>
PHP Coding to send to my email:
<!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-Type" content="text/html; charset=UTF-8" />
<META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
<title>Email Form</title>
</head>
<body>
<?php
$name=addslashes($_POST['name']);
$contact_number=addslashes($_POST['contact_number']);
$email=addslashes($_POST['email']);
$address1=addslashes($_POST['address1']);
$address2=addslashes($_POST['address2']);
$town=addslashes($_POST['town']);
$county=addslashes($_POST['county']);
$postcode=addslashes($_POST['postcode']);
$propertyType=addslashes($_POST['propertyType']);
$propertyArea=addslashes($_POST['propertyArea']);
$rearExt=($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
$sideExt=($_POST['sideExt'])?"Side ground extension: Yes":"Side ground extension: No";
$twoStoreyRear=($_POST['twoStoreyRear'])?"Two-storey rear extension: Yes":"Two-storey rear extension: No";
$twoStoreySide=($_POST['twoStoreySide'])?"Two-storey side extension: Yes":"Two-storey side extension: No";
$loft=($_POST['loft'])?"Loft: Yes":"Loft: No";
$newBuild=($_POST['newBuild'])?"New Build: Yes":"New Build: No";
$flat=($_POST['flat'])?"Flat: Yes":"Flat: No";
$other=($_POST['other'])?"Other: Yes":"Other: No";
$msg.="\n$rearExt\n$wsideExt\n$twoStoreyRear\n$twoStoreySide\n$loft\n$newBuild\n$wflat\n$ other";
$message=addslashes($_POST['message']);
// you can specify which email you want your contact form to be emailed to here
$toemail = "[email protected]";
$subject = "From Website Test";
$headers = "MIME-Version: 1.0\n"
."From: \"".$name."\" <".$email.">\n"
."Content-type: text/html; charset=iso-8859-1\n";
$body = "Name: ".$name."<br>\n"
."Email: ".$email."<br>\n"
."Contact No: ".$contact_number."<br>\n"
."Address1: ".$address1."<br>\n"
."Address2: ".$address2."<br>\n"
."Town: ".$town."<br>\n"
."County: ".$county."<br>\n"
."Postcode: ".$postcode."<br>\n"
."Property Type: ".$propertyType."<br>\n"
."Property Area: ".$propertyArea."<br>\n"
."Rear ground extension: ".$rearExt."<br>\n"
."Side ground extension: ".$sideExt."<br>\n"
."Two-storey rear extension: ".$twoStoreyRear."<br>\n"
."Two-storey side extension: ".$twoStoreySide."<br>\n"
."Loft conversion: ".$loft."<br>\n"
."New build: ".$newBuild."<br>\n"
."Flat: ".$flat."<br>\n"
."Other: ".$other."<br>\n"
."Message:<br>\n"
.$message;
if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
echo "That is not a valid email address. Please return to the"
." previous page and try again.";
exit;
mail($toemail, $subject, $body, $msg, $headers);
echo "Thanks for submitting your comments";
?>
</body>
</html>Dear David
Thank you so much for the clear explanation. I have been using Lynda.com Dreamweaver CS5 tutorial. I found the coding for checkbox through search and added to the coding from Lynda.com tutorial.
I made few changes to the coding by removing:
$msg = "$rearExt<br>\r\n$sideExt<br>\r\n$twoStoreyRear<br>\r\n
$twoStoreySide<br>\r\n$loft<br>\r\n$newBuild<br>\r\n$flat<br>\r\n$other\r\n";
as the email message shows the results from the checkbox twice.
I also removed the <br> from:
$body = "Name: $name<br>\r\n
Email: $email<br>\r\n
Contact No: $contact_number<br>\r\n
Other: $other\r\n
Message:\r\n
$message";
I have add the result and the PHP coding you have helped to fixed for anyone needing a working PHP code containing Text Fields, Drop Down List, Checkbox and Text Area. Many thanks for all your help. If you have a coding to change the heading text colour I very much appericate it.
Message sent to email:
From: Name test <[email protected]>
Content-type: text/html; charset=iso-8859-1
Name: Name test
Email: [email protected]
Contact No: 0123456789
Address1: addy1
Address2: addy2
Town: T
County: C
Postcode: P/C
Property Type: End of Terrace
Property Area: Listed Building
Rear ground extension: Rear ground extension: No
Side ground extension: Side ground extension: No
Two-storey rear extension: Two-storey rear extension: Yes
Two-storey side extension: Two-storey side extension: No
Loft conversion: Loft conversion: No
New build: New Build: No
Flat: Flat: Yes
Other: Other: No
Message:
Test message
PHP coding for customer contact page:
<!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-Type" content="text/html; charset=UTF-8" />
<META HTTP-EQUIV="refresh" content="0;URL=thankyou.html">
<title>Email Form</title>
</head>
<body>
<?php
$name=$_POST['name'];
$contact_number=$_POST['contact_number'];
$email=$_POST['email'];
$address1=$_POST['address1'];
$address2=$_POST['address2'];
$town=$_POST['town'];
$county=$_POST['county'];
$postcode=$_POST['postcode'];
$propertyType=$_POST['propertyType'];
$propertyArea=$_POST['propertyArea'];
$rearExt= isset($_POST['rearExt'])?"Rear ground extension: Yes":"Rear ground extension: No";
$sideExt= isset($_POST['sideExt'])?"Side ground extension: Yes":"Side ground extension: No";
$twoStoreyRear= isset($_POST['twoStoreyRear'])?"Two-storey rear extension: Yes":"Two-storey rear extension: No";
$twoStoreySide= isset($_POST['twoStoreySide'])?"Two-storey side extension: Yes":"Two-storey side extension: No";
$loft= isset($_POST['loft'])?"Loft conversion: Yes":"Loft conversion: No";
$newBuild= isset($_POST['newBuild'])?"New Build: Yes":"New Build: No";
$flat= isset($_POST['flat'])?"Flat: Yes":"Flat: No";
$other= isset($_POST['other'])?"Other: Yes":"Other: No";
$message=$_POST['message'];
// you can specify which email you want your contact form to be emailed to here
$toemail = "[email protected]";
$subject = "From Website Test";
$headers = "MIME-Version: 1.0\r\n
From: $name <".$email.">\r\n
Content-type: text/html; charset=iso-8859-1";
$body = "Name: $name\r\n
Email: $email\r\n
Contact No: $contact_number\r\n
Address1: $address1\r\n
Address2: $address2\r\n
Town: $town\r\n
County: $county\r\n
Postcode: $postcode\r\n
Property Type: $propertyType\r\n
Property Area: $propertyArea\r\n
Rear ground extension: $rearExt\r\n
Side ground extension: $sideExt\r\n
Two-storey rear extension: $twoStoreyRear\r\n
Two-storey side extension: $twoStoreySide\r\n
Loft conversion: $loft\r\n
New build: $newBuild\r\n
Flat: $flat\r\n
Other: $other\r\n
Message:\r\n
$message";
if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
echo "That is not a valid email address. Please return to the"
." previous page and try again.";
exit;
mail($toemail, $subject, $body, $headers);
echo "Thanks for submitting your message";
?>
</body>
</html> -
Pass/retrieve data to PDF form using php
Hi
We are trying to build an application that goes like this.
Web based application. Document template is uploaded. User can open the template, fill in data, and save the form. PHP , Mysql
We are stuck at the stage where we need to pass some data via php into the form and then extract the filled in data from the form via php.
Does anyone have a solution to this.
Thanks
Sam
zhhealthcareTry googling "iText".
iText is JAVA based, and is capable of creating and manipulating FDF data.
For a Microsoft .net version, check out "iTextSharp", or "FDFToolkit.net"
Hope this helps... -
When logged into forms webpage getting Internal server error
hi all,
recently we have configured reverse proxy setup to access portal from internet and now after logging into forms i am getting Internal server error where portal is the virtual host name https://portal.localdomain.com/forms/frmservlet?config=sso_form. the error which i am getting is
(the server encountered internal error or misconfiguration and was unable to complete your request. error may be available in server log
oracle application server 10g/10.1.0.2. oracle http-server server at portal.localdomain.com port 443)
following are the errors
Apache/Apache/logs
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[0]: Accept, header_value[0]: */*.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[1]: Accept-Encoding, header_value[1]: gzip, x-gzip, compress, x-compress.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[2]: Accept-Language, header_value[2]: en-us.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[3]: Connection, header_value[3]: Keep-Alive, TE.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[4]: Host, header_value[4]: rlap1s2k.poloralphlauren.com:7788.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[5]: TE, header_value[5]: trailers, deflate, gzip, compress.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[6]: User-Agent, header_value[6]: Mozilla/4.0 (compatible; MSIE 6.0; Windows).
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1000): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0040: Request: header_name[7]: Oracle-ECID, header_value[7]: 1224810459:10.98.35.34:897262:0:75,0.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1053): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0044: Request: query string: type=System.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1078): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0045: Request: jvm_route: e3iQch8KbN4Re34SahuQaNaNaO1ynknvrkLOlQzNp65In0.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1240): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0050: Request: env_name[0]: OC4J_UNPARSED_URI, env_value[0]: /webapp/servlet/EMDServlet.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1253): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0109: Request: ajp13 command: FF.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1270): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0098: Have successfully sent out all the ajp13 headers to the web container.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1859): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0063: Response status line: 200 OK.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1862): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0064: Response number of headers: 5.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1898): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0067: Response header_name[0]: Date, header_value[0]: Date: Fri, 24 Oct 2008 01:07:39 GMT.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1898): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0067: Response header_name[1]: Content-Type, header_value[1]: text/html.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1898): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0067: Response header_name[2]: Content-Length, header_value[2]: 14.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1898): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0067: Response header_name[3]: Set-Cookie, header_value[3]: JSESSIONID=0a62232230d76881608e0f264a5db01fd8741646fd2b.e3iQch8KbN4Re34SahuQaNaNaO1ynknvrkLOlQzNp65In0; path=/webapp; secure.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(1898): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0067: Response header_name[4]: Cache-Control, header_value[4]: private.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(752): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0034: After handling ajp13 response message, got a returned value: 0.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(752): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0034: After handling ajp13 response message, got a returned value: 0.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ajp13_worker.c(752): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0034: After handling ajp13 response message, got a returned value: 5.
[Thu Oct 23 21:07:39 2008] [debug] oc4j_ac_worker.c(391): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0122: Serviced request with network worker: home_15.
[Thu Oct 23 21:07:39 2008] [debug] mod_oc4j.c(786): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0014: Serviced the request by worker: home.
[Thu Oct 23 21:07:39 2008] [debug] mod_oc4j.c(807): [client 10.98.35.34] [ecid: 1224810459:10.98.35.34:897262:0:75,0] MOD_OC4J_0374: Response was started, returning OK.
[Thu Oct 23 21:07:44 2008] [debug] mod_osso.c(3998): [client 127.0.0.1] [ecid: 10.98.35.34:66740:1224810464214:1483,2] \n[OSSO] ===== REQUEST =====\n[OSSO] GET /dms0/Spy?format=tbml&operation=get&value=false&units=true&description=true&version=9.0.4 HTTP/1.1\n
[Thu Oct 23 21:07:44 2008] [debug] mod_osso.c(367): [client 127.0.0.1] [ecid: 10.98.35.34:66740:1224810464214:1483,2] \n[OSSO] D26: process_idle_time()\n
[Thu Oct 23 21:07:44 2008] [debug] mod_osso.c(808): [client 127.0.0.1] [ecid: 10.98.35.34:66740:1224810464214:1483,2] \n[OSSO] D03: update_request()\n
[Thu Oct 23 21:07:44 2008] [error] [client 127.0.0.1] [ecid: 10.98.35.34:66740:1224810464214:1483,2] File does not exist: /u01/oracle/midtier/Apache/Apache/htdocs/dms0/Spy
J2EE/OC4J_BI_Forms/application-deployments/formsapp/OC4J_BI_Form~island-1/application.log
08/10/23 19:42:31 formsweb: Started
08/10/23 20:27:33 formsweb: Stopped
08/10/23 20:27:33 Stopped (Shutdown executed by jazn.com/admin from 127.0.0.1 (localhost))
08/10/23 20:27:39 Started
08/10/23 20:27:44 formsweb: jsp: init
08/10/23 20:27:44 formsweb: frmservlet: init
08/10/23 20:27:44 formsweb: FormsServlet init():
configFileName: /apps/oracle/Prd/midtier/Prd_midtier/forms/server/formsweb.cfg
testMode: false
08/10/23 20:27:44 formsweb: Started
server.log
08/10/23 23:44:13 Published an event: C_101.98.3.35.2164a99a.11c5210156f.-8000#usncpas2k.localhost.localdomain.com#181863334#D#OC4J_BI_Forms#default_island&localhost.localdomain.com&HTTP:localhost.localdomain.com#12504&RMI:localhost.localdomain.com#12404&JMS:localhost.localdomain.com#12605
default-web-access.log
[23/Oct/2008:23:50:00 -0500] "GET /reports/rwservlet/pingserver HTTP/1.1" 200 3Hi Matt,
Thanks for you answer.
Yes, I agree error log is not that helpful.
There are no errors or any log for that matter in IDM Console side, so I am guessing that error is occurring entirely in Java side.
I am trying to reset password for ABAP and IDM UI.
Backend is IDM UME.
Thanks
Aditi -
Error Message from DWCS4: Error in line 27 of form.js.php
Hi
I did a seach of the forum for this and came up blank, so here goes although I am sure I am not alone with this one...
This week I installed CS4 and get an error reported whenever I open up an ADDT Dynamic Form:
"There is a syntax error on line 27 of form.js.php. Code hinting may not work until you fix this error."
The line in question is:
NXT_Messages['are_you_sure_move'] = '';
Anyone else seen this ?
Should I be concerned ?
Thanks.Hi Wollombi,
I´ve seen this too with DW CS4, but in fact there´s nothing to "fix" because it´s the same code which was used by ADDT 1.0.0.
I just guess that the DW CS4 parser stumbles across the nested apostrophes which don´t seem to produce PHP errors in the browser.
Should I be concerned ?
I´ve always ignored this message because the forms work when opened in a browser
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
Hello,
I have been reading that mailto: is outdated. I have been reading on creating an email form using php. I don't understand. Do you create a table first to put the info:
First Name:
Last Name:
Email:
Message:
Submit button
Does anyone know of a comprehensive article that I could read with maybe some examples or even tutorial. This is my webstie www.ewrolexrepair.com. This is my first website. I am trying to put somekind of email contact next to my picture. Any help would be greatly appreciated. Thanks!Below is a ready made php form including First Name, Last Name, Email and Message.
The form is sent back to the page it is located on i.e. if the form is inserted into a page called 'contact.php' then the action form field would be as follows: <form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
Change the below in the code to your email address (the one you want the info to be sent to):
$to = "[email protected]"; //email address -- change to your own email address
Change success.php below in the code to the page you want the user to go to after submitting the form.
header("Location: success.php");
//Redirect page -- change to your own page
<!-- FORM CODE STARTS HERE -->
<?php session_start(); ?>
<?php
if (array_key_exists('submit', $_POST)) {
// check first_name field
$first_name = trim($_POST['first_name']);
if (empty($first_name)) {
$error['first_name'] = 'Please provide your first name';
elseif ($first_name == 'Please provide your first name') {
$error['first_name'] = '';
$_SESSION['first_name'] = $_POST['first_name'];
// check last_name field
$last_name = trim($_POST['last_name']);
if (empty($last_name)) {
$error['last_name'] = 'Please provide your last name';
elseif ($last_name == 'Please provide your last name') {
$error['last_name'] = '';
$_SESSION['last_name'] = $_POST['last_name'];
// check email field
$email = trim($_POST['email']);
if (empty($email)) {
$error['email'] = 'Please enter your email address';
elseif ($email == 'Please enter your email address') {
$error['email'] = '';
$_SESSION['email'] = $_POST['email'];
// check enquiry field
$message = trim($_POST['message']);
if (empty($message)) {
$error['message'] = 'Please enter your message details';
elseif ($message == 'Please enter your message details') {
$error['message'] = '';
$_SESSION['message'] = $_POST['message'];
if (!empty($_POST['ufo'])) { return false; }
// recipient
$to = "[email protected]"; //email address -- change to your own email address
// email subject
$subject = "Enquiry from Website";
// sender
$sender = "From: ".$_POST['email']."\r\n";
// build message
$enquiry = "First Name: $first_name\n\n";
$enquiry .= "Last Name: $last_name\n\n";
$enquiry .= "Email Address: $email\n\n";
$enquiry .= "Message: $message\n\n";
// send email if no form erorrs
if (!isset($error)) {
mail($to, $subject, $enquiry, $sender);
header("Location: success.php"); //Redirect page -- change to your own page
?>
<!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-Type" content="text/html; charset=utf-8" />
<title>PHP Form Test</title>
<style type="text/css">
/* style the form input fields */
#enquiryForm input {
font-family: arial, verdana, sans-serif;
font-size: 12px;
width: 300px;
padding: 5px;
/* style the form textarea field */
#enquiryForm textarea {
font-family: arial, verdana, sans-serif;
font-size: 12px;
width: 300px;
padding: 5px;
/* style the form submit button */
#enquiryForm #submitButton {
width: 100px;
</style>
</head>
<body>
<form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
<h2>Online Enquiry</h2>
<p>Required Information*</p>
<p><label for="Name">First Name* </label><br />
<input type="text" name="first_name" id="first_name" <?php if(isset($error['first_name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($first_name)) {echo $first_name;} ?><?php if(isset($error['first_name'])) echo $error['first_name']; ?>" onfocus="this.value=''"></p>
<p><label for="Name">Last Name* </label><br />
<input type="text" name="last_name" id="last_name" <?php if(isset($error['last_name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($last_name)) {echo $last_name;} ?><?php if(isset($error['last_name'])) echo $error['last_name']; ?>" onfocus="this.value=''"></p>
<p><label for="email">Email<span>*</span>
</label><br />
<input type="text" name="email" id="email" <?php if(isset($error['email'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($email)) {echo $email;} ?><?php if(isset($error['email'])) echo $error['email']; ?>" onfocus="this.value=''"></p>
<p style="padding-bottom: 0;"><label for="enquiry">Message<span>*</span></label><br />
<textarea name="message" id="message" <?php if(isset($error['message'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> onfocus="this.value=''"><?php if(isset($message)) {echo $message;} ?><?php if(isset($error['message'])) echo $error['message']; ?></textarea></p>
<p><input type="text" name="ufo" style="display: none;"></p>
<p><input type="submit" id="submitButton" name="submit" value="Send Enquiry" /></p>
</form>
</body>
</html> -
I need to set up an Email Login on my Dreamweaver Website. I found the information on how to Build a Log In Form on the support page, but when I open my Window menu to look for "Server Behaviors" I noticed it just says "Behaviors". In the instructions it says the next thing I need to do is hit the + symbol and choose "User Authentication" but this is not an option in my Behaviors menu. Does anyone know where on Dreamweaver Creative Cloud I can create a form that will be an Email LogIn for my employees?
The server behaviours in CC were removed by default because they create outdated coding. You can restore them via an extension:
Server behaviors, Databases, and Bindings in Dreamweaver CC -
Pin redo logs into smart flash cache (Exadata Flash PCI F20 cache)
Need to know if we could pin redo logs into smart flash cache.
For example to pin table..
we use Alter table dhaval storage (cell_flash_cache keep) -----
Similarly can we pin redo logs into flash cache ?
If not, what is the alternative to put redo logs into flash cache ?At Oracle OpenWorld the Exadata Smart Flash Log feature was announced. The Smart Flash Log feature requires Exadata Storage 11.2.2.4.0 or later, and Databases version 11.2.0.2 Bundle Patch 11 or greater. This feature allows a modest amount of flash to be used as a secondary write place. It wites redo to both flash and disk and returns the call to the db for the first one that finishes. By doing so it improves user transaction response time, and increases overall database throughput for IO intensive workloads.
Regards,
Greg Rahn
http://structureddata.org -
I have posted this before a while back, but never figured it
out. I think I am really close.
When my form gets clicked, the following gets triggered:
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
this.tf_showAlertMsg.text = "Thank you for sending us an
email";
} else {
this.tf_showAlertMsg.text = "Email did not go through";
var send_lv:LoadVars = new LoadVars();
send_lv.Name = tName;
send_lv.FromEmail = tEmail;
send_lv.Subject = tSubject;
send_lv.Comments = tMsg;
send_lv.Newsletter = tCheckBox;
send_lv.status = "";
send_lv.sendAndLoad("php/sendContact.php",result_lv,"POST");
this.showAlertMsg("Sending...");
Everything gets sent and all is working great. The only thing
that does not work is the ifStatement in the result_lv never gets
triggered. I think that this has to do with my php. I don't really
speak php and so I am having issues with it.
In the php I have two echos, which I was told I could use
with the result_lv. I think that my result_lv, does either not know
what it is listening to, or that my echos are wrong. The echos in
the php look like this.
//if($debug)
echo "mes1 $ToEmailType $ToEmail $Subject $Message From:
$Name $FromEmail\n ";
and
echo "&Status=Your quote request has been sent.";
What do I have to do, so Flash receives the echo and I can
tell the user that the info has been received.
Thanks a lot for help with this!OK, great, I am getting closer! Thank you so much.
I now get the "Email did not go through" case. The email gets
sent though, so I am not sure why that is happening. I am assuming,
where you say //find out if it's working first is working because
the if statement gets triggered.
How can I proceed from here?
Thank you so much! -
Is SWFOBject messing up my Flash/PHP 'contact form'?
Hi all,
First post, and first project using Flash!
Here's the
page I'm having problems with...
It's an email contact page that uses a Flash contact form
that I purchased from iStockphoto. The swf uses a PHP script that I
keep in the same location on my server as the swf. The PHP sends
the email to my specified address. In theory that should work fine,
but in the interests of keeping things working across browsers, and
maintaining my Validation, I've been calling the swf using
SWFObject.
However, something is screwed up. When I click on 'Send' on
the successfully embedded Flash form, nothing happens. Neither my
hosting providers nor the author of the flash have been able to
work out why - although they both agree that SWFObject may have
something to do with it.
Please bear in mind that I'm REALLY new to Flash, although
I'm by no means a technonewbie - tell me what I'm looking for and
what to change and I can keep up, but someone posted the following
on another forum I frequent and I have no idea what it means:
quote:
Submitting a form relies on either a post or get method,
maybe SWFObject needs specific configuration to do this. If it
doesn't support either of those two methods you may need to use an
interim piece of javascript or something to accept the form
variables then call your sendmail.
Help much appreciated!
Owenkglad,
The actionscript calls the PHP form but dosen't post any information, it loads in the browser and I get the email but nothing in it?
I'm just looking for the correct Actionscript to paste into flash and hopefully get it working. Thanks for the help.
Maybe you are looking for
-
Can you have multiple apple id's with different billing?
My husband and I started out using the same Apple ID and now have it on a laptop, 2 iPhones and an iPad. When we set up our new 4S iPhones our Contacts were merged and some duplicated. I also want to have my own set of music so I'd like to separate
-
How to get Flash to use AIR 2.7 for iOS?
How do I force Flash Pro to use AIR 2.7 for an iOS-project? When choosing Publish settings you can only choose AIR for iOS without any version numbers. But when you choose only AIR there is a version number. According to an informative video http://t
-
9.0.4 to 10.1.2
Hi, were moving from forms 9.0.4 to 10.1.2. Besides re-compiling all the modules (*.fmb, *.mmb & *.pll), is there anything else? Does anything have to happen with form object libraries? The form template that we used under 9.0.4 to create the object
-
Hi All, I have a requirement where I need to set the xsi:type attribute to some value before I submit the SOAP request from SAP PI. I have not been able to figure out where how to set the value of this attribute. I have an XSD that I am using to ge
-
Next newbie fun - drag and drop
Well after a very successful last posting - here goes again .... I'm trying to get the dragged images to appear in the box. But for some reason they're not appearing. As you can tell - I is still a newbie! Thanks <?xml version="1.0" encoding="utf-8"?