Devam Ediyor

485021 Need script to get variable from url and insert into form

I have a form that needs to get three variables from the url string. Sample:

[url removed, login to view]

Using JAVASCRIPT ONLY (can't use any php), I need to get the values of the variables move_date, move_origin and move_destination from the url and insert them into the respective form fields in the form (code below).

<form action="" method="post">

<p><strong>Contact Information</strong></p>

<p><label>Name:  </label><input type="text" name="name" /></p>

<p><label>Email:  </label><input type="text" name="email" /></p>

<p><label>Phone:   </label><input type="text" name="phone" /></p>

<p><strong>Move Information</strong></p>

<p><label>Move Date: </label><input type="text" name="move_date" id="datepicker" value="insert value" /></p>

<p><label>Move Origin: </label>[url removed, login to view]('<input type="text" name="move_origin" value="*insert value" />');</p>

<p><label>Move Destination: </label><input type="text" name="move_destination" value="*insert value*" /></p>

<p><label>Move Type/Size: </label><select name="move_type">

<option value="Studio Apt">Studio Apartment</option>

<option value="1 bedrm">1 Bedroom</option>

<option value="2 bedrm">2 Bedrooms</option>

<option value="3 bedrm">3 Bedrooms</option>

<option value="4 bedrm">4 Bedrooms</option>

<option value="More than 4 bedrm">More than 4 bedrooms</option>

</select></p>

<p><label>Additional Comments:</label><br/> <textarea name="additional_info"></textarea></p>

<p><input id="btnSubmit" type="submit" value="Submit" class="button" /></p>

</form>

Beceriler: Her şey Kabul, Javascript, PHP, Kabuk Betiği

Daha fazlasını görün: three p, get string, additional comments, get label, need get, insert date, insert variable, php insert select, sample apartment, insert php code form, javascript code insert php, javascript insert text, php post insert, php textarea value, textarea value php, php action form, using variables url, php form action, javascript variable php, javascript date fields, url information, input datepicker, url contact form, select name, domain value script

İşveren Hakkında:
( 14 değerlendirme ) Hillsborough, United States

Proje NO: #2230931

Seçilen:

godforall

Pleae check PMB.

0 gün içinde 10$ USD
(31 Değerlendirme)
3.9