HighDots Forums  

Resending Posted Form Data

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Resending Posted Form Data in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gabe
 
Posts: n/a

Default Resending Posted Form Data - 12-02-2005 , 12:25 PM






Is there an easy way to send form data via post to a page that captures
all that data ( manipulates it ) and then via post again sends it off to
another page (the manipulation requires no action by the user)? I know
it sounds redundant, but I need to manipulate some of the data entered
in the form and I don't want to do it with client side javascript before
the form is sent the first time. I'm using ASP and PHP.

To clarify, I would like to take the input from a form, manipulate the
data in just a couple of the fields of the form, and then forward the
whole form on via post to another page that is the final destination. I
have to make sure the data manipulation takes place which is why I would
like to do it with server side code instead of client side.

Any suggestions?

Reply With Quote
  #2  
Old   
Joe Makowiec
 
Posts: n/a

Default Re: Resending Posted Form Data - 12-02-2005 , 12:44 PM






On 02 Dec 2005 in macromedia.dreamweaver, Gabe wrote:

Quote:
Is there an easy way to send form data via post to a page that
captures all that data ( manipulates it ) and then via post again
sends it off to another page (the manipulation requires no action by
the user)? I know it sounds redundant, but I need to manipulate
some of the data entered in the form and I don't want to do it with
client side javascript before the form is sent the first time. I'm
using ASP and PHP.
Huh? Last I knew, you couldn't use both in the same file...

Quote:
To clarify, I would like to take the input from a form, manipulate
the data in just a couple of the fields of the form, and then
forward the whole form on via post to another page that is the final
destination. I have to make sure the data manipulation takes place
which is why I would like to do it with server side code instead of
client side.

Any suggestions?
Do it all in the script which sends the mail (pseudocode):

// Get information from the form
myfirstname = trim(post('firstname'))
mylastname = trim(post('lastname'))
// Do some processing
myfullname = myfirstname & ' ' & mylastname
....
// Send mail
mail('me (AT) example (DOT) com', from: myfullname, ...)

--
Joe Makowiec
http://makowiec.net/
Email: http://makowiec.net/email.php


Reply With Quote
  #3  
Old   
Gabe
 
Posts: n/a

Default Re: Resending Posted Form Data - 12-02-2005 , 12:57 PM



Sorry about that. I just meant I could use PHP or ASP, not both in the
same file.

Also, I can't email the info to someone. I have to "post" the
information to an external website that I have no control over. So
basically, I need to retrieve the info that the user filled out in a
form, manipulate some of that data ( server side ), and then send the
form data to an external website that needs to receive the data via the
"post" method.


Joe Makowiec wrote:

Quote:
On 02 Dec 2005 in macromedia.dreamweaver, Gabe wrote:


Is there an easy way to send form data via post to a page that
captures all that data ( manipulates it ) and then via post again
sends it off to another page (the manipulation requires no action by
the user)? I know it sounds redundant, but I need to manipulate
some of the data entered in the form and I don't want to do it with
client side javascript before the form is sent the first time. I'm
using ASP and PHP.


Huh? Last I knew, you couldn't use both in the same file...


To clarify, I would like to take the input from a form, manipulate
the data in just a couple of the fields of the form, and then
forward the whole form on via post to another page that is the final
destination. I have to make sure the data manipulation takes place
which is why I would like to do it with server side code instead of
client side.

Any suggestions?


Do it all in the script which sends the mail (pseudocode):

// Get information from the form
myfirstname = trim(post('firstname'))
mylastname = trim(post('lastname'))
// Do some processing
myfullname = myfirstname & ' ' & mylastname
...
// Send mail
mail('me (AT) example (DOT) com', from: myfullname, ...)


Reply With Quote
  #4  
Old   
Gary White
 
Posts: n/a

Default Re: Resending Posted Form Data - 12-02-2005 , 02:49 PM



On Fri, 02 Dec 2005 12:57:40 -0500, Gabe <none (AT) nowhere (DOT) com> wrote:

Quote:
Also, I can't email the info to someone. I have to "post" the
information to an external website that I have no control over. So
basically, I need to retrieve the info that the user filled out in a
form, manipulate some of that data ( server side ), and then send the
form data to an external website that needs to receive the data via the
"post" method.

It's a relatively straightforward process in PHP by using direct socket
I/O. Although, I'm worried by your comment that you can use either ASP
or PHP. All too often, hosts turn off direct socket I/O in PHP when it's
on a Windows server.

Gary


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.