Developer forum

Forum » Development » Post & Get Method with DW forms

Post & Get Method with DW forms


Reply

Hi,


I need to submit form data via POST method to an external URL. The supporter at DW says that I may be able to use data lists, but he is not sure.

So maybe someone in here can help me?
 

From this page (http://carambaimaging.net.dynamicweb.dk/Free-Image-Enhancement.aspx) I need to post the data:
 

*company   
*contact
phone
*email
*address1
*city
*country
notes


to this URL: http://imageservice.carambaimaging.com/kontering/faces/andet/eksakteOpret.jspx


Like this:
http://imageservice.carambaimaging.com/kontering/faces/andet/eksakteOpret.jspx?company=MyCompany&email=jano@ihk.dk&contact=Jacob&phone=26206512&address1=Skt+Ann%e6+Plads&city=K%f8benhavn&country=Danmark¬es=Andre+noter


So can anyone tell me, if this is possible in DynamicWeb and how I can solve this issue?


You may also refer to the customer's running web solution on http://www.carambaimaging.com/signup.aspx - I convinced the customer, that DW was much better for SEO, but now I'm afraid DW lacks some other important features.
 

Thank you in advance
Steen
Itzy-Bitzy Communications


Replies

 
Nicolai Høeg Pedersen
Reply
Hi Steen

In your forms template simply replace the <!--@Form.Start--> tag with your own form tag:

Dynamicweb outputs this:
<form method="post" id="FormSave2" name="FormSave2" enctype="multipart/form-data" action="http://carambaimaging.net.dynamicweb.dk/Default.aspx?ID=19">


Simply insert :

<form method="post" id="FormSave2" name="FormSave2" action="http://imageservice.carambaimaging.com/kontering/faces/andet/eksakteOpret.jspx">

You say you need a post, but the URL you write uses GET - so you might need to change the method from POST to GET?

What important features are you affraid Dynamicweb is missing?
 
Reply
That's great, thanks.

I have another question then, hope you can help with that too. I need to post (or get) data like this "company=CompanyName", but when I use Access when generating the form, it uses the table name as a prefix on the system names, so in my case it becomes "FreeTrial_company=CompanyName".

Is there any way I can change this - could I use another connection in order to control the system name - or is this fixed?

No, I guess DW doesn't lack anything only web-designers who know how to code :)

Cheers,
Steen
 
Nicolai Høeg Pedersen
Reply
Hi Steen

When creating a form, the module automatically suggests a systemname called Tablename_fieldname. You can just change that systemname to whatever you want, and then that will be used in your frontend... 

 

You must be logged in to post in the forum