473,408 Members | 2,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Modify POST variables before to send


Hi all,

Is there a way for delete variables of a form just before it is
sended to server?
I don't want to delete the input element, but only to prevent that
name/value to be sended to the server.
Thank you,
Tom Lobato

Jun 11 '07 #1
6 3150
Tom Lobato said the following on 6/10/2007 8:20 PM:
Hi all,

Is there a way for delete variables of a form just before it is
sended to server?
I don't want to delete the input element, but only to prevent that
name/value to be sended to the server.
Set it's value to "". A better alternative is to have the server ignore
the inputs. But, if you want the inputs ignored, why are they on the
page to start with?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 11 '07 #2
On Jun 10, 9:32 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Tom Lobato said the following on 6/10/2007 8:20 PM:
Hi all,
Is there a way for delete variables of a form just before it is
sended to server?
I don't want to delete the input element, but only to prevent that
name/value to be sended to the server.

Set it's value to "". A better alternative is to have the server ignore
the inputs. But, if you want the inputs ignored, why are they on the
page to start with?
Hi Randy, thank you for quick reply.

This html sends the post request to a server that I cannot program:
absolutefp script, that reads name/values's and creates a ms xls
document.

On client side, I need to have fields "phone_prefix" and
"phone_number" on html form, but only send to final xls spreadsheet
one field: "phone", that is a concatenation of both.


Tom Lobato

Jun 11 '07 #3
Tom Lobato said the following on 6/10/2007 8:49 PM:
On Jun 10, 9:32 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>Tom Lobato said the following on 6/10/2007 8:20 PM:
>> Hi all,
Is there a way for delete variables of a form just before it is
sended to server?
I don't want to delete the input element, but only to prevent that
name/value to be sended to the server.
Set it's value to "". A better alternative is to have the server ignore
the inputs. But, if you want the inputs ignored, why are they on the
page to start with?

Hi Randy, thank you for quick reply.

This html sends the post request to a server that I cannot program:
absolutefp script, that reads name/values's and creates a ms xls
document.

On client side, I need to have fields "phone_prefix" and
"phone_number" on html form, but only send to final xls spreadsheet
one field: "phone", that is a concatenation of both.
Then have a hidden input named "phone" and update it whenever
phone_number and phone_prefix get modified. And then, put them in a
separate form so they don't get submitted.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 11 '07 #4
On Jun 10, 10:40 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Tom Lobato said the following on 6/10/2007 8:49 PM:
On Jun 10, 9:32 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Tom Lobato said the following on 6/10/2007 8:20 PM:
> Hi all,
Is there a way for delete variables of a form just before it is
sended to server?
I don't want to delete the input element, but only to prevent that
name/value to be sended to the server.
Set it's value to "". A better alternative is to have the server ignore
the inputs. But, if you want the inputs ignored, why are they on the
page to start with?
Hi Randy, thank you for quick reply.
This html sends the post request to a server that I cannot program:
absolutefp script, that reads name/values's and creates a ms xls
document.
On client side, I need to have fields "phone_prefix" and
"phone_number" on html form, but only send to final xls spreadsheet
one field: "phone", that is a concatenation of both.

Then have a hidden input named "phone" and update it whenever
phone_number and phone_prefix get modified. And then, put them in a
separate form so they don't get submitted.
Indeed, I tried to set to "" but it yet is send to server.

Before I had thought in such solution (another form), but was
searching something like
post_request.remove(var1). Now I see that indeed making another form's
is not a bad way (and maybe it is the only :).

Thank you very much for the great help!

Tom Lobato
Jun 11 '07 #5
On Jun 10, 10:40 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>
This html sends the post request to a server that I cannot program:
absolutefp script, that reads name/values's and creates a ms xls
document.
On client side, I need to have fields "phone_prefix" and
"phone_number" on html form, but only send to final xls spreadsheet
one field: "phone", that is a concatenation of both.
Then have a hidden input named "phone" and update it whenever
phone_number and phone_prefix get modified. And then, put them in a
separate form so they don't get submitted.
Is there some special way to use nested form's? I tried to put
phone_number and phone_prefixa inside form "form_dummy", and this
inside
"form1", but the elements inside form_dummy are being send to server
when
I submit form1.
Tom Lobato

Jun 11 '07 #6
Tom Lobato said the following on 6/11/2007 12:37 AM:
>On Jun 10, 10:40 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>>>This html sends the post request to a server that I cannot program:
absolutefp script, that reads name/values's and creates a ms xls
document.
On client side, I need to have fields "phone_prefix" and
"phone_number" on html form, but only send to final xls spreadsheet
one field: "phone", that is a concatenation of both.
Then have a hidden input named "phone" and update it whenever
phone_number and phone_prefix get modified. And then, put them in a
separate form so they don't get submitted.

Is there some special way to use nested form's?
You don't, as that creates invalid HTML.
I tried to put phone_number and phone_prefixa inside form
"form_dummy", and this inside "form1", but the elements
inside form_dummy are being send to server when I submit form1.
That is why you can't nest them.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Jun 11 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Robert | last post by:
Hello, Can anyone help with this? On my online order form, I need to send a few variables to my credit-card processor. These variables are for non-secure customer comments, and will be sent...
13
by: Marcus | last post by:
Hi All, I was wondering if there is a way to ensure that when submitting forms and using POST vars, the page sending the form resides on the same server as the destination page specified in the...
1
by: Herman Geldenhuys | last post by:
Hey. Im trying to post some variables to an URL, but I get an error saying that my XML is parsed incorrectly. I know that it is not. At closer inspection I found out that some module in Python...
15
by: Thomas Scheiderich | last post by:
I am trying to understand Session variables and ran into a question on how they work with data that is passed. I have an HTM file that calls an ASP file and sends the name either by GET or POST....
3
by: Lars Netzel | last post by:
Hello! I have a button, in the click event I have this code: ---------------------------------------------------------------------------- ---------------------------- Response.Write("<script...
24
by: moriman | last post by:
Hi, The script below *used* to work. I have only just set up a server, PHP etc again on my Win98 system and now it doesn't? On first loading this page, you would have $p = and the button...
5
by: Bint | last post by:
Hello, I'm new to web programming, and I've been looking all day on the web for an answer to this question. I'm trying to send some binary data, a relatively large amount (~128K), to a PHP...
1
by: grande news | last post by:
Hello, I am trying to send a bunch of data via a single POST message, from a wireless device to a PHP script on my server. Some of this data is base64_encoded binary image data. Basically, I...
5
Atli
by: Atli | last post by:
Hi everybody. After years of C# and PHP, I'm finally returning to Java. My goal is to create a Java program capable of sending images to a PHP Photo Album on my web server. Right now, however,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.