Hello everybody First you should know that I'm from Romania so my english might not be so good. My problem is that I want to fill and submit from my website a form from another site. Can that be done with php or javascript? I know that it can be done with C++ but I'm not very good at that . Thanks
If you create a form on your site and change the action attribute to the url of the site you want to post to then this may work. Basically you duplicate the form on your site and post the data to the same script they use to process the form.
<form name='form2' method='post' action='http://action-path-2/'> <input type='hidden' name='name' value='$name'> <input type='hidden' name='email' value='$email'> </form> <script language='JavaScript' type='text/JavaScript'> document.form2.submit(); </script> Something like this I have used with php/ javascript combination. values passed to one PHP file is then submitted to other action path automatically.
You can just do a "GET" request to the right url. For instance, if the form you want to submit looks like this: <form method="post" action="http:/url.com/submit"> <input type=text name=username> <input type=text name=email> <input type=submit> </form> Then to submit this directly all you do go to a url like this: http:/url.com/submit?name=this%20is%20a%20name&email=me@me.com In javascript you can just do location.href=<url above> URLs are broken since I can't post URLs yet.
I am trying to populate a HTML form from the URL. Can you take a look at this and let me know where i am going wrong. The results will be sent via email to me. Whena user fills out the form. Here is my code : <form method="GET" action="submit.htm"> <input type=text name=username> <input type=text name=email> <input type=submit> </form> URL: http://dizam.org/Work.htm?name=David Any assitance is appreciated.
1. <form method="GET" action="submit.htm"> will send the form to submit.htm and you're requesting the variables in Work.htm 2. <input type=text name=username>, <input type=text name=email> declares two input fields with names 'username' and 'email' 3. URL: dizam.org/Work.htm?name=David is expecting a querystring name as opposed to username and email ? 4. Rename Work.htm to Work.php
I did what your suggested. However, what i want to do is send the variables as a link in an email to someone and have it autopopulate. Any ideas??
Hello everybody Well, I just wanted to ask how can I create -if it a way exists of course- a perl program that can fill automatically php post web forms. I would really appreciatte your help. Thanks Sakti