473,785 Members | 2,498 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

post link

Is it possible to create a link that can post a value to an ASP page without
java?
Jul 19 '05 #1
4 2190
I don't believe so. At least not in any browser I've seen. You either use
an input button, an image input, or onclick javaSCRIPT. You may want to ask
in a browser group, however.

Ray at work

"Dodo" <do**@no.fly> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
Is it possible to create a link that can post a value to an ASP page without java?

Jul 19 '05 #2
What are you trying to do exactly.
This link posts a value to an ASP Page...

<a href="www.yourd omain.com?value =thevalue">The Link</a>

Although I would recommend using a form with a hidden field with the
data and the button as the link.

Brynn

On Tue, 13 Jan 2004 04:31:19 -0000, "Dodo" <do**@no.fly> wrote:
Is it possible to create a link that can post a value to an ASP page without
java?


I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
Jul 19 '05 #3
"Brynn" <z@z.com> wrote in message
news:40******** ******@news.com cast.giganews.c om...
What are you trying to do exactly.
This link posts a value to an ASP Page...

<a href="www.yourd omain.com?value =thevalue">The Link</a>


No it doesn't. The above passes the value through the query string, which
is not the same as a POST. With a form POST (<form method="post" ...), more
data can be passed than if you used method="get" (or passing via the query
string). Also, POSTed data is not visible in the query string.

Regards,
Peter Foti
Jul 19 '05 #4

Yes, of course ...

I simply assumed that by post, he was using plain english description
of what he wanted, rather than technical term post.

The querystring is not immediately visible (in the querystring).
However, it sounds as if you have a value in mind if you are trying to
get a link to pass it ... which means that the form you would be using
would probably have a hidden field with the data in it ... which is
visible through View Source ... but ANYWAY.

Also, the querystring ... I think ... only holds around 2000ish
characters ... never really pushed it pass 100 personally, and only
for navigation ... not for data.

So AS I STATED before, I would use the hidden field / form technique
with a submit button or image submit button.

If you are in a controlled environment, or trust everyone to keep
javascript on in their browsers (I will usually trust most to keep
javascript on) ... you could even have a text link with a javascript
onClick command to submit the form.
At least with the javascript way, you could put the form anywhere in
your design of the page, since it won't be seen ... and the link will
be able to submit the form without being inside it.

<form name="yourForm" method="post" action="/youraction.asp" >
<input type="hidden" value="your value">
</form>

<a href="#" onClick="docume nt.yourForm.sub mit();">Your Link</a>

Anyway, now that, that confusion is over with :)

Please let me know if this helps or you need further.

Brynn
www.coolpier.com

On Tue, 13 Jan 2004 11:45:19 -0500, "Peter Foti"
<pe***@Idontwan tnostinkingemai lfromyou.com> wrote:
"Brynn" <z@z.com> wrote in message
news:40******* *******@news.co mcast.giganews. com...
What are you trying to do exactly.
This link posts a value to an ASP Page...

<a href="www.yourd omain.com?value =thevalue">The Link</a>


No it doesn't. The above passes the value through the query string, which
is not the same as a POST. With a form POST (<form method="post" ...), more
data can be passed than if you used method="get" (or passing via the query
string). Also, POSTed data is not visible in the query string.

Regards,
Peter Foti


I participate in the group to help give examples of code. I do not guarantee the effects of any code posted. Test all code before use!

Brynn
www.coolpier.com
Jul 19 '05 #5

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

Similar topics

3
3989
by: sentinel | last post by:
Hi, Wonder if anyone can help with this problem: I am using an app with several pages, using a session to track vars between the pages, and using an image map to re-direct back and forwards between the pages. The way I redirect is when the image map is clicked on, it posts to a page called 'control.php' which passes the POST vars to the
3
6614
by: Armin Irger | last post by:
Hi, i'am running a debian sarge with the delivered apache2 mysql and php4. The file "mitarbeiter_eingabe.php" gets the data over a html <FORM> and send it to "mysql_mitarbeiter_daten_hinzufuegen.php" to write it in an mysql database. These already worked on php3 and mysql-3 and now on php4 and mysql4 it doesn't work. I can't found any changes between php3 and php4, mysql3 and mysql4 that explained the fact that only empty spaces are...
1
4196
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens in IE as well as FireFox. This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL 4.1.8 and it works fine. The problem server is a Win2k server, IIS5, PHP 5.0.4, mySQL 4.1.11.
5
3146
by: Jan Roland Eriksson | last post by:
Some more fine tuning and inclusion of last suggested text from regulars has been done to this test post #4 of the mFAQ. As usual, rip it up anywhere you feel that it's appropriate to do so. ===== Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26
9
3100
by: c676228 | last post by:
Hi, I am new to this discussion forum. I started to post questions on this forum since this Jan. and got many good responses and I am very appreciated to those who are willing to help with their expertise. That save me a lot of time and stress. I want to rate the post, but I only see questions "is this post helpful" and " why should I rate a post" link. I didn't see any thing "rate the post" link. I already sign into the community...
1
4789
by: pmasclark | last post by:
Hello, I created a web site, site A, that redirects to another web site, site B, where a simple web service is hosted. The code to call the web service is simple. oWS.AllowAutoRedirect = True oWS.Credentials = New System.Net.NetworkCredential("user","pass") str = oWS.HelloWorld("World")
7
4774
JodiPhillips
by: JodiPhillips | last post by:
Hi, My first post! I've basically taught myself Access and the little I know about VBA through reading these forums and a couple of books. I'm in the middle of a project at work - to put it mildly I've been thrown in at the deep end, in the past I've just done simple databases and that's been fine. Now, however I have to "roll out" various front ends to a single back end for initially 10 users (and the bosses have plans for this to go to...
13
5117
by: trpost | last post by:
I am looking for a way to send data from one page to another as POST data without using forms or cURL. I have a php script that is passing a list of cases from on page to another when a link is clicked. This is working fine for the most part as a link, but sometimes the list gets very large and gets cut off. The reason it gets cut off appears to be a limitation on the amount of data that can be passesd in the URI. It looks like I can...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9481
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10155
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9954
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8979
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5383
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5513
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.