Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Auto Fill 2nd Form Field From 1st Info


I want to be able to auto fill the description of an item based on the part number. I know I can do this but have to reload the page each time. Not a problem except I am not sure how to do this without submitting the form, however when I submit the form I want to go to a confirm page. Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Auto Fill Form
I need to fill a form that is on another website that I don't have any control over. Basically there are two fields on that other website. First name and lastname. Is there anyway I can auto fill that from my site? I know We can submit forms on another site using CURL. But I would like to know if i can fill the form fields on another site.

View Replies !
Auto Fill A Form
I seen a website doing this but not in php so Im wondering if it is possible to open up
a page like http://mail.yahoo.com and fill in my username and password with a php script?
if possible how can i do this?

View Replies !
Auto Fill And Submit Form
Can i fill a form and submit it automatically using PHP? or Suppose a PHP script uses the 'Get' to get variables, I suppose i can directly specify a value to that variable as

url/abc.php?fieldname=value

What if it uses 'Post' ?

View Replies !
Auto Fill Form Inputs
I have the drop down menu that list the person's name from the MySQL query. Next to the drop down menu I have 3 text boxes...user's name, user's sex, user's age. I want 3 text boxes to display the information that is already in the Database when I choose the user I want to see. I have the DB table that houses users information already with the information already entered. Once I click user 2 I want that user 2's name, sex, & age to be displayed in those 3 text boxes that I already have. Then if I choose user 10 I want user 10's information to populate in those 3 text boxes.

View Replies !
Autmatic Form Field Fill
I have two fields in a form. The first is the email field the second is the username.
Now I want the username field to be filled automatically with the part before "@" of the first field.
So if someone fills in "brain@domain.com" the second field has to be filled with "brain".

View Replies !
How The Pre-fill The <input Type="file" /> Field Of A Form.
On a user workstation there is a file linked to many other files. The user
upload this file to my server. I can build a list of these files. But I
don't know the path to these files on the workstation. PHP does not give
this information. I am looking for a simple solution from the user point of
view for him to send me all these files.

Because I don't know the path to the file, I can ask the user to type the
path in a dialog box.

I don't have, from the server, a possibility to upload the files on the
workstation. And I don't know how the pre-fill the <input type="file" />
field of a form.

View Replies !
Auto Fill Forms?
Is it possible to auto fill form with your information.

Example:
https://login.yahoo.com/config/mail?.intl=us

Can I Log into there with my username and password from a php file and check if the word anoluck exist.

View Replies !
Radio Button Auto Fill
I need to use JavaScript or use php or what to make this work. I have a Radio button group & 2 text input boxes below the radio buttons. I have information that needs to be placed in the text boxes stored in MySQL db. In my DB I have TEAM 1's name & then TEAM 2's name already stored. The 2 radio buttons lets you choose either TEAM 1 or TEAM 2. I need the user to be able to click TEAM 2 & the 2 text boxes fill with TEAM 2's Name & if he chooses TEAM 1 then it fill with TEAM 2's name.

View Replies !
Auto Fill Dropdown List Error
Im using the code below to autofill a dropdown list from my MYSQL DB.
The only problem is it is leaving out the first entry (alphabetically) for each $vehicle_make ? Does anyone know why this may be hapenning? Code:

View Replies !
Auto Fill Date Dropdown List
How would I modify this code to display the years in the dropdown list like so:

current year
2006
2005
back 50 years

<select name="year" id="year">
<?PHP

for($i=date("Y");
$i<=date("Y")+2;
$i++)
if($year == $i)
echo "<option value='$i' selected>$i</option>";
else
echo "<option value='$i'>$i</option>";
?>
</select>

View Replies !
Form - Clients Fill Out An Estimate Form
I have a form on our website that clients fill out an estimate form and it is emailed back to us. The contact information of the customer (ie. name, address, city) will send but the rest (ie. Type of est, How they heard about us, etc.) will not. Code:

View Replies !
Fdf Fill Out A Form
I followed the instruction of http://fooassociates.com/phpfer/html/rn20.html

I know how to fill in the data into a form on the browser of the client.
Is it possible to fill out the form on the server and to send this as a
pdf file to the client?

View Replies !
Fill In Form Fields On PDF
Looking for classes or libraries which allow you to fill in form
fields on a PDF document.

View Replies !
Automatically Fill In A Web Form
As part of a group project I have been assigned to research how PHP can be
used with HTML web forms. What I need to know is, is it possible to
automatically fill in a web form using a PHP script? i.e. Fill in the text
boxes, and such with information passed in to the PHP script.

View Replies !
Fill In A Form + Get Results
Is it possible to use php to fill in data on another site, and get the results back from the site? i presume if so, i will need to parse html? the remote site I want to use is a .do ( java ) site.

View Replies !
Form Fill & Print
im trying to create a simple form that visitors will complete name address phone email and quantity, i dont need the form sent anywhere just a confirmation page that the visitor will print and post. its just to place an order for one item i will sell. I see so many PHP forms but they seem way to advanced for my simple needs.

View Replies !
Auto-increment Field
I have query which returns the value of a auto-increment field last entered. That is:

$sqlquery = "SELECT MAX(field-id) from table";
$result = mysql_query($sqlquery);

The query itself seams to work fine alone, but when I run it in a php script and try to print $result it returns "Resource id #6" . No idea what this is or where it came from.

View Replies !
Auto Select Field
I have a contact form in php and want the first text field to be auto selected, my field is called 'First' id= First. is this php or java script?

View Replies !
Auto-incrementing Field
I am trying to go back through all of my tables and optimize them. I have a general question here.

I have a site that allows members to add items to their favorites. The table only stores two items; user_id and item_id. When they attempt to add an item to their favorites I do a check to make sure that there is not an entry for that user_id and item_id already existing and deny it if there is.

I used this: EXPLAIN SELECT * FROM table WHERE user_id = 1

and it shows null for all fields. In a situation like this is it better to add another auto-incrementing field called fave_id and set it to index? I know it would take more space but would it speed things up?

View Replies !
Create And Fill-in Form From MySQL
I am working on an admin page where a user can input data into two text fields. When the the form is actioned the two fields are inserted into a table as a row.

What I want to do is when the user calls up the form, any rows that exsist in the table are inserted into the text fields. So the user will see x number of rows with the text fields on the form (x number being number of rows in table). The data is listed in order as determined by the MySQL query. At the end I want to add two blank text fields.

The user can then edit the data in the text fields which updates the appropiate row or enters data into the bottom (blank) text fields which adds a new row.

This is the query I have to call the data PHP Code:

View Replies !
Fill A Form Authenticated HTTPS
I'm searching all around the web without any good answer, maybe you have
the right one.

I'm trying to fill&send a form on a site authenticated https via curl.
The problem is simply that it doesn't arrives to authenticate..
It returns id error1 -> unsupported protocol.

The code is the following:

<?php
$user_agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";

$login_url = "https://www.my_site.com/login";
$login_data = "username=my_user_name&password=my_pass";
$form_url = "https://www.my_site.com/form";
$form_data ="input1=walla&input2=test";

$ch = curl_init($login_url);

curl_setopt($ch, CURLOPT_SSLVERSION, 3);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_COOKIEJAR, "curl_cookies");
curl_setopt($ch, CURLOPT_COOKIEFILE, "curl_cookies");
curl_setopt($ch, CURLOPT_POSTFIELDS, $login_data);

$body = curl_exec($ch); // login

curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_URL, $form_url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $form_data);

$body = curl_exec($ch); // get form results

echo "error curl_errno ($ch) <br>"; //it return error id1
curl_close($ch);
?>

View Replies !
Passing Variables To Fill A Form
how can I send variables from a php page to a form - i need to fill the form with these variables? maybe using (the process of passing variables to other pages - through url) but how can i assign them to form variables ?

View Replies !
Automatically Fill And Validate Form
I have a simple HTML login page with a username and a password field, as well as a submit button, which I have to use for login(I cannot simply replace it by a php-page.

is it possible to call this page via a hyperlink from a php-script and to directly fill the username and password fields as well to raise the event of clicking the submit button.
Goal is that I when click the hyperlink on the php-script, the HTML-login form is automatically filled and the login is done automatically without having to click on the submit-button.

Is this possible?

View Replies !
Edit Form, Data Not Re-fill
im doing a edit profile page. the page would pull out data frm mysql and populate the forms respectively.

user will edit and update their profile. The page would then validate the value in the form. if there's an error, it would prompt the user. when this happen, the form do not retain the newly entered value but instead re-display what is pull out from the database.. how do i retain the newly entered value in the textbox? Code:

View Replies !
Auto Reset A Mysql Field
I've got a field named hoursPurchased and hoursRemaining in a db setup to keep track of monthly contracts. I need to reset hoursRemaining to hoursPurchased on the 1st of each month. Can someone point me to a good tutorial for the script for that if you know of one. I know about cron, but don't know how to tell it to reset for each row in the database.

View Replies !
Reset An Auto Increment Field
if i can, with an SQL command, reset an autoinc type field to start counting again from zero. i have one table that just holds temporary information, and all records get deleted after they are used. i thought it would be handy if , after i deleted the records, were able to reset the autoinc counter back to zero .

View Replies !
Retrieve Auto Incrimented Field
I have a page where the user inputs a number of field data. The I use some php to make some calculations and upload the results and inputed data into a table. I want to then display the calculated results and the user input and the primary key(that is set to auto incriment).

View Replies !
If 10 Clients Fill Out A Form On My Page Simultaneaously And Hit Submit
If 10 clients fill out a form on my page simultaneaously and hit submit, how
does my (Apache2.0.50/PHP4.3.8) server exactly ensure each gets 'their own'
completed form returned ? Or is it possible the clients get mixed up under
some conditions?

View Replies !
Dynamic Fill Form Fields Depending On Dropdown Box
This question has probably already been asked, but let me ask again

I have a mysql database to which I connect with my php scripts. The
database contains articles. Name, Unit_Price and Reference

Now my client needs to order 5 items, click a button and a table with 5
lines and 3 columns appears (until now easy)

In the first column is a drop down box with a <select > and <options> in
which I store all possible names.

I would like than whenever the client changes one of the boxes (in my
case there are 5) the Unite_Price column and Reference column in the
line he just choose get automatically updated

View Replies !
Prewritten PHP/Mysql Scripts That Allow The User To Fill Out A Form
I have receive hundreds of emails per day with information that then needs to be put live on my website, things like Bands Name, CD Name, Year, Etc, Etc for unsigned bands. Now as you can probably tell this is becoming somewhat of a tedious task.

Are there any prewritten PHP/Mysql scripts that allow the user to fill out a form that is then submitted to the site itself, after I have checked to make sure that all the information submitted is fine?

View Replies !
Stoping Auto Updates Of The Date Field
I have a table with a field using the "timestamp" type. When I update another field, the "timestamp" field also updates to the time the other field was updated. I don't want this.
I'm using this to update the table. PHP Code:

View Replies !
Form Validation :: Alert Users They Have Forgot To Fill Fields
I am having problems figuring out how to do a form validation using HTML and PHP. I create 2 radio buttons, 4 text boxes for name, email, password, and validation string. I then create some other stuff that isn't mandatory to fill out followed by a push button of type="submit".

When the user presses the Submit button, I want to notify them if they forget to fill out the name, email, or password, or if they forget to choose one of the radio buttons or if they type in an incorrect validation string. I do not know how to go about doing this if it is part of PHP or HTML. Code:

View Replies !
Fill Out A Form And Check A Box And IF The Box Is Checked Then Print Specific Text
I am trying to modify a form he made for me. I want to be able to have users fill out a form and check a box and IF the box is checked then print specific text, if it is not then continue to next if statement.

<? $zone=$_POST['zone']; if($zone == "") { print " stuff, stuff

" }
{ ; die(); } ?>


<? $zone2=$_POST['zone2']; if($zone2 == "")
{ print "blahblah blah" }
{ ; die(); } ?>

View Replies !
Inserting Data Into A Table With Auto Increment In One Field
i have a table with several fileds in and with the first one being an auto increment field. I want to know what my SQL query should be when inserting data. Here's my current one: Code:

$SQL = mysql_query("INSERT INTO $usertable2 VALUES('$subject', '$newstext', '$date', '$usrname')";

The auto increment field is the first in the table and is called 'postid'. can someone give me the correct query please? also do i need the first entry in the table to be a blank one with just the postid entered at one?

View Replies !
Updating Auto Increment Field After Deleting A Record
So much for thinking MySql is smart, but what's an easy way to update an auto increment field after deleting a record. the code is below, please help, specifically part 3 is where the magic happens. thanks in advance. by the way id is the name of the auto increment field. Code:

View Replies !
How Can Create A New Permanent Table And Fill It Up With Rows Form Existing Tables
I did a ’join’ between 5 tables and I would like to save the output into a new
permanent table.

View Replies !
Displaying Info From User's Field In Numbers
in a loop, what would i use to like, if ina field a user has say 4 'f's (ffff) and i want it to display, You Have: 4 f(s)! but theres gonna be like, lets say the whole alphabet in there, and she can get a new 'f' every minute if she wanted...so anyone have suggestions? and in this table im haveing i have 3 fields, owner(the user) id(the letternumber) and name(the letter itself)

View Replies !
Reload Form Element Without Loosing Form Info
I have a upload image page which a user can upload image and some description to go with it.

My need is the user would like to be able to create a folder before uploading his image but during have filled the form.

The problem is that the list box which list folders will need to reloaded with out loosing all the data filler in the from ?!??!?

View Replies !
Auto Submit A Form In PHP
Does anybody know how to auto-submit a form in PHP without Javascript?

For instance, submit form variables to self, validate the data in PHP on
same page, then, if no errors, auto-submit the data via post rather than
URL. Could serialize a few fields to URL, but there is a larger comments
field that I think needs to be posted instead.

Auto-post the form variables possible?



View Replies !
Auto Posting Form
i need something very similar to craigslist type of posting. The user clicks "Post Here", fills out a form (Name, email, location of sale, 1-5(10) pictures),clicks "Post", and a link with one image will appear on the frontpage as well as a separate new page for the post. We do have SQL database.

No, we are not creating a craigslist like site, but we are joining with our local newspaper, and we want people who read the newspaper, to be able to post their items and location of yardsales.

If somebody could help me out with either the code itself, or point me in the right dorection as to where I would be able to learn that. I have basic HTML knowledge, and able to use MS Frontpage or Macromedia Dreamweaver.

View Replies !
How Do I Auto Insert To Db Without A Form
I am trying to run a counter so when a person clicks on a banner, it updates the db with a new number.

I have called the banner link:   ad_counter.php?id=1
I have a field in my table called ad_counter

Then im setting a recordset to GET the data. I am using:

$last = $row_Recordset1['ad_counter'];
$add = 1;
$ad_counter = $last + $add;

What I want to do is auto form fill and update the database, and proceed to their website without this process even being seen.

Is this possible without having to push the form submit button. A basic statistics gatherer for businesses who wish to advertise.

View Replies !
Auto Submit Form
i have a travel site and would like to link air timetable from different airports. To know a real information a need to submit a form in their site, but one site build on aspx.

View Replies !
How To Auto Redirect A Form
I have a form that passes a value(ex. amount/price, name) to a php processing script, which is a different page like action=formprocess1.php. Now my problem is I want to redirect my fields to another processing page (example action=formprocess2.asp) without the user clicking the submit button again and without the user knowing it.

So from form1.php to formprocess1.php to formprocess2.php without the user clicking the submit button in formprocess1.php. You might have gotten with this trouble before where you want two action to process your form fields but there is only one action you can declare to the form. Is there a way to this?

if you may wonder. i have a created a form that submits to a processing page, that shoots email and my client has its own credit card processing which resides in a different domain and i want to send the fields that i have extracted from my form to that credit card processing domain which resides in another server.

View Replies !
Auto-generating Rows On A Form
I need to create a form where people enter in information about pieces of equipment that they would like to sell, the only issue is that I never know how many they need to enter. I could just do a initial "How many... " form and create the next form from there, but I was thinking of something else.

would like to know if this is possible(pretty sure ive seen it, just dont know how to do it): Start the form with just one row. As soon as they start entering information in that row, another row pops up below. When they enter info into that row, it creates another row... and so on.

View Replies !
Auto-generating Form Value Permutations..
I'd like to create a script that runs through a form, and autogenerates
every single permutation for every single value, as well as option.
The task is because I am currently working on a webservice project
where I am feeding in nightly a set of values from an external data
source, and populating my form with those values. In the end, I end up...

View Replies !
Auto Create Form Fields
is there a way in php to look up a mysql table and use the column headings as form field variables … meaning with this php program the entire table columns are displayed as form fields in the browser ?

No need then to build the form by hand … in this consequence there could be a input type column and a width column which could be used to also automatically create the right types of fields for that particular mysql table …

View Replies !
Mysql Auto Form Building?
Using Mysql 4 and Php 5 also working in OOP using classes and functions Project is to allow admin to create new tables in the database through a browser. For example - 3 content sections sport, travel, news.

In the admin area I want them to be able to create a table say "business". Each table has different field names some will be enums, text and varchars etc. I would appreciate some advice or pointers in the right direction for this.

Here is what I think I need to do - Build a simple function that reads all the field names of a table into an array ready to generate the form.

View Replies !
Auto Populating Form Fields
I know this isn't a PHP thing. But, I've been unsuccessfully looking for how to populate form fields with data found in other fields.

For example, I would like to populate shipping information with the billing information - if they are the same. This would save the time from entering the same address twice.

Does anyone know of a javascript site that is decent at these options?

View Replies !
Auto-place Cursor In Form Box
I have users with profiles on my site, and I'm working on allowing users to send private messages. In a user's profile, there is a link for sending a message. The link reloads the profile with a form box for typing in the message.

Does anyone know how I make the page center (or at least scroll so that the box is in the viewable window) and place the cursor inside in the form? I basically want to do the same thing as www.google.com in that the cursor is automatically in the search box when you open the page.

View Replies !
Auto Submitting To A Form Using CURL
I am using CURL to auto submit to a form using POST. I need to submit though using the user's ip address and not the server's ip address. Is there a way that I can pass through the user's ip address so it will look like they submitted the form?

View Replies !
Form Auto Select Option
I have a website that has a contact form with a dropdown list of names. I would like to code it so that when a user selects a person's name from another page, that when it brings them to the contact form, that name is automatically selected in the dropdown list.

View Replies !
Auto Submitting Form Problem
When the user selects the value from the list I want it to refresh automatically, as if the user has pressed submit. I have named the form 'test' and added onchange="test.submit();" to the Select field. as so:

<select size="1" name="search" onchange="frmtest.submit();">

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved