homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

how do i pass perl form to php form
i need to code the php form to accept the perl dat via the post method

Msg#: 4287345 posted 1:01 pm on Mar 25, 2011 (gmt 0)

I need to design php page form to accept data passed to it via a perl form bellow is an example of the perl page.

use CGI qw(:all);


print header;

print <<"HTML";
<HTML><HEAD><TITLE>Secure Online</TITLE><script LANGUAGE="JavaScript">
<BODY onLoad="document.rrrr.submit()">

<form method="POST" name="rrrr" action="http://localhost/index1.php">
<INPUT NAME="mer_url_idx" TYPE="HIDDEN" VALUE="1">
<INPUT NAME="mer_id" TYPE="HIDDEN" VALUE="1111111">
<INPUT NAME="num_items" TYPE="HIDDEN" VALUE="10">
<INPUT NAME="item1_desc" TYPE="HIDDEN" VALUE="Invoice: $invoice Company Total">
<INPUT NAME="item1_price" TYPE="HIDDEN" VALUE="$total">
<INPUT NAME="item1_qty" TYPE="HIDDEN" VALUE="1">



WebmasterWorld Senior Member 10+ Year Member

Msg#: 4287345 posted 3:02 am on Mar 26, 2011 (gmt 0)

What you posted should work, the data is being sent by the browser, not perl, so there are no issues with format.


WebmasterWorld Senior Member 5+ Year Member

Msg#: 4287345 posted 4:12 am on Mar 26, 2011 (gmt 0)



$mer_url_idx = $_POST['mer_url_idx'];
//..repeat the others

echo "mer_url_idx: ".$mer_url_idx."<br>";
//repeat the others



Msg#: 4287345 posted 5:51 am on Mar 29, 2011 (gmt 0)

thanks it worked perfectly

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved