473,406 Members | 2,404 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,406 software developers and data experts.

Url change hidden variable and submit form

I have a form in php file
Expand|Select|Wrap|Line Numbers
  1. <form action="index.php" method="post">
  2. <input type="hidden" name="hvalue" value="123">
  3. </form>
i want to edit variable "hvalue" and submit the form through an url like
"http://website.com/index.php?hvalue=456&action=submit"
Nov 8 '12 #1
14 2624
Dormilich
8,658 Expert Mod 8TB
change post to get.
Nov 8 '12 #2
i cant modify it, because im not the hoster

have you alternative way to do that without changing the source?
All i want to change the variable and submit the form automatically

Sorry for my bad english
Nov 9 '12 #3
Dormilich
8,658 Expert Mod 8TB
i cant modify it, because im not the hoster
then what can you modify?
Nov 9 '12 #4
u cant modify it. because u use not a local server but use
web server
Nov 9 '12 #5
Dormilich
8,658 Expert Mod 8TB
If I had the appropriate rights on a web server, I could modify those’s files to my liking.
Nov 9 '12 #6
ok. question misunderstanding
Nov 9 '12 #7
Well, this form in a website and i want to change the hidden variable in that form then submit it using a PHP page
I want that to be done with one single step like "url or simple script" because it will be part of automated script.

Any ideas ??

*Sorry for late response
Nov 10 '12 #8
u will use ajax for that because ajax is mostly use for that
Nov 10 '12 #9
could you help me doing this script using AJAX ??
Nov 11 '12 #10
Rabbit
12,516 Expert Mod 8TB
That form is in the PHP file, if you can't change the PHP file, then you can't change the form.
Nov 11 '12 #11
NOOOOOO, I won't change the source ...
I just want to do some steps automatically without humanitarian intervention

Something like "Marco", I click one link on a php file i host
and it do the rest for me.

The rest is:
1. Navigate to another website [i don't host]
2. Submit a form [with method post] and i couldn't change it because i don't host it

This script would be a part of automated script

Hope i describe it well.
*Sorry for my bad english
Nov 12 '12 #12
Dormilich
8,658 Expert Mod 8TB
write the form code as you want it and submit it to the desired address. where the code came from does not matter to the receiving PHP script.

example
Expand|Select|Wrap|Line Numbers
  1. // foreign website (example.org) offers following form
  2. <form action="index.php" method="post">
  3. <input type="hidden" name="hvalue" value="123">
  4. </form>
  5.  
  6. // I can rewrite that locally to
  7. <form action="http://example.org/index.php" method="post">
  8. <input type="hidden" name="hvalue" value="abc">
  9. <input type="hidden" name="vvalue" value="567">
  10. </form>
  11. // and submit it
  12. // whether the result will differ, is another problem
Nov 12 '12 #13
Yeah great work, it works but i could't submit it automatically
This script require me to click on a button to submit the form

I want to submit it automatically, without humanitarian intervention
Like you enter "http://website.com" and it redirects you to "http://anotherwebsite.com" but with the form submitted

OR Could i get the source code of the submitted form from the original website also without humanitarian intervention?

*Thanks for your interest
*Sorry for annoying
Nov 13 '12 #14
Dormilich
8,658 Expert Mod 8TB
I want to submit it automatically
how about form.submit();
Nov 13 '12 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: tencip | last post by:
Hi everyone, So, i've got a form that is very simple. It hold three elements: username, password, and domain. The goal here is to have the form submit the login to an administrative section...
10
by: Frank Rizzo | last post by:
Ok, this is probably so simple... Anyway, I'd like to pass a value in the hidden variable. I have code like this: <form...> <input type="Hidden" name="zzz" value="1"> ... </form> I want...
19
by: k.karthikit | last post by:
Hello all, In some hidden variable (<input type="hidden" name="hiddenId" value="test" /> ,i stored some value.I accessed the value "test" using var id = document.getElementById( 'hiddenId' );...
1
by: MZ | last post by:
Hello! Is it possible to change URL form action on submit form... I have tried such code: <script language="JavaScript" type="text/javascript"> function changeURL() {
4
by: jej1216 | last post by:
I'm pretty new to PHP and MySQL. I have managed to create a form that inserts data to MySQL and to create a form to search the DB. Now here is my problem. I am unsuccessful coding a hidden...
11
by: newbie | last post by:
i have a form in which a hidden field (initial value as '0', and my javascript set it to '1' when an event is trigged). In the same form, i have a reset field. But I realized that the hidden field...
1
by: mahesh4all | last post by:
Dear sir i want to submit a form when user leaves mozila browser. My Code is as follows test1.jsp <script language="javascript"> function submitthis() {
1
by: metalforever | last post by:
How do you redirect a form after submit(form sends email) ? This is pretty urgent for me. I have included the code in a pastebin. http://pastebin.org/249014 process_form sends the email. ...
1
by: helplakshmi | last post by:
I want to download the records of the output of search criteria to excel. As the fields for search criteria are more than 20. I am submitting the form with POST method rather than GET. On click...
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
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,...
0
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...
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,...
0
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...

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.