The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
S-231: Adobe Form Designer and Form Client Vulnerabilities iBot Security Advisories (RSS) 0 03-27-2008 10:10 AM
CEP: What about the action? iBot Complex Event Processing RSS News 0 02-15-2008 11:20 AM
form validation with perl LNC Shell Programming and Scripting 5 12-21-2007 09:46 AM
action command esham Shell Programming and Scripting 5 07-30-2005 05:04 AM
Changing Unix form to Microsoft Word form to be able to email it to someone. Cheraunm UNIX for Advanced & Expert Users 8 05-24-2002 04:58 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-06-2007
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
perl cgi form action target

Hello All,

I was trying to come up with a form using perl cgi. I then created a frame to show the output of the form. Refer below

print $display_form->start_form(-title=>"Updateuser", -style => 'font-size: 9pt; color: #202020 ; font-family: Verdana', action=>"${DOCROOT}updateUser.pl", target=>'cmxiframe');

print $display_form->end_form();

print $display_form->Tr(
td(
{
-width => "70%",
-halign => "right",
-valign => "top" },
"<iframe id=\"cmxiframe\" name=\"cmxiframe\" src=\"${DOCROOT}blankPage.pl\" width=600 height=200 frameborder=0 scrolling=no style=\"overflow:visible\"></iframe>"
)


However, this is not redirecting the output of my 'action' scipt into the required frame. Does anyone see a problem here ? Thanks in advance.

Regards,
Garric
  #2 (permalink)  
Old 12-06-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Quote:
Originally Posted by garric View Post
print $display_form->start_form(-title=>"Updateuser", -style => 'font-size: 9pt; color: #202020 ; font-family: Verdana', -action=>"${DOCROOT}updateUser.pl", -target=>'cmxiframe');
Some hyphens appear to be missing on this line.
  #3 (permalink)  
Old 12-06-2007
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
Even after adding the hyphens, it continues to take me to a new page and is not loading it in the frame
  #4 (permalink)  
Old 12-06-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Have you checked the generated HTML (use browser's view source) really contains the "form" tag with the target attribute and the iframe is really there with that name?

As the CGI module does nothing but generates HTML, it should be reproducible with a static HTML form with the same HTML.
  #5 (permalink)  
Old 12-09-2007
garric garric is offline
Registered User
  
 

Join Date: Apr 2006
Posts: 99
The HTML looks right. Its here below

<?xml version="1.0" encoding="iso-8859-1"?>
<!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" lang="en-US" xml:lang="en-US"><head><title>Untitled Document</title>
<meta http-equiv="refresh" content="300" />
</head><body><form method="post" action="/CSDADM/updateUser.pl" enctype="application/x-www-form-urlencoded" target="cmxiframe" style="font-size: 9pt; color: #202020 ; font-family: Verdana" title="Updateuser">
&nbsp;&nbsp;<p /><p /><p /><b>Choose pool : </b>&nbsp;<select name="pool">
<option value=""></option>

<option value="ipf_64g">ipf_64g</option>
<option value="md_alt">md_alt</option>
<option value="md_pnr">md_pnr</option>
<option value="rls">rls</option>
<option value="vesta">vesta</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<p /><b>Enter User &nbsp; : </b>&nbsp;<textarea name="user" rows="1" cols="15" style="background-color: transparent">hkn</textarea>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<p /><b>Choose operation : </b><input type="radio" name="operation" value="add " checked="checked" />add <input type="radio" name="operation" value=" remove" /> remove<p /><input type="submit" name="Update user" value="Update user" /><div><input type="hidden" name=".cgifields" value="operation" /></div></form><table border="0" cellspacing="0" cellpadding="0" width="70%"><tr><td valign="top" halign="right" width="70%"><iframe id="cmxiframe" name="cmxiframe" src="/CSDADM/blankPage.pl" width=600 height=200 frameborder=0 scrolling=no style="overflow:visible"></iframe></td></tr></table></body></html></body></html>
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0