Reply
Double CGI
Old 08-10-2004, 12:36 AM Double CGI
johnncyber's Avatar
Extreme Talker

Posts: 216
I think this goes here CGi is DHTML after all.

Anyways,

I have a small problem, I have a product catalog and I need an add to cart button to do two things. The button needs to send the data to the shopping cart script (remotely hosted) and also link to another HTML file so that the user can fill out another form (Script is hosted locally). Any ideas? The URL is http://www.shieldyrbk.com/catalog.shtml and the form url is http://www.shieldyrbk.com/form.shtml

Have Fun,
__________________
~Mark Romero
-Co Founder | Tech Guru, Studio [LBK]
-FireFox Advocate, GetFirefox.com
johnncyber is offline
Reply With Quote
View Public Profile Visit johnncyber's homepage!
 
When You Register, These Ads Go Away!
Old 08-10-2004, 05:16 AM
webwoRRks's Avatar
Ultra Talker

Posts: 426
Location: I hope so
First of all, CGI is not DHTML. DHTML is a combination of CSS, HTML, and scripts (javascript, vbscript), to give a client-side dynamic page. Secondly, the easiest way will be headers. Lets say, when you post this data to your shopping cart page, you also send a GET arguament, like

page?goto=next_html_file.htm

then, after your shopping cart has done its work, it sends a header to redirect the users browser to the value of goto. In php, I would do this;

PHP Code:
<?php

if(isset($_GET['goto'])) {
  
header("location: ".$_GET['goto']);
}

?>
__________________
Theres 10 types of people; those who understand binary, and those who don't.
webmaster and webdeveloper resources, http://www.webworrks.com
webwoRRks is offline
Reply With Quote
View Public Profile Visit webwoRRks's homepage!
 
Reply     « Reply to Double CGI
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12026 seconds with 12 queries