Jump to content

pm4698

New Members
  • Posts

    2
  • Joined

  • Last visited

pm4698's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello there, I have 2 questions: 1) Look here: http://www.hellastransfers.com/booking/taxi.php I have a form and i want to pass values from URL to fields. So, for example to pass a value to Prefered driver ID field you write this: http://www.hellastransfers.com/booking/taxi.php?drivercode-123 and the value 123 is passed to that field. I did this with this code: <?php $sDriverCode = $_REQUEST['drivercode']; ?> <input style="width:100px;" name="drivercode" id="drivercode" value="<?=$sDriverCode?>" data-mini="true" /> At the same form i have some radio-type fields. Its the one you see at Type of Vehicle (Standard, Premium etc). When i try to do the same, i cannot get this to work. What i am trying to do is this: <?php $sCar = $_REQUEST['vehicle_choice']; ?> <input type="radio" name="vehicle_choice" id="vehicle_standard" value="standard" <?= ($sCar == 'standard' ? 'checked' : '') ?> /> <label for="vehicle_standard" class="myButton">Standard</label> <input type="radio" name="vehicle_choice" id="vehicle_business" value="business" <?= ($sCar == 'business' ? 'checked' : '') ?> /> <label for="vehicle_business" class="myButton">Premium</label> and if write at URL this: http://www.hellastransfers.com/booking/taxi.php?vehicle_choice=business, then i cannot see the Premium radio box as checked. I tested and i confirmed that $sCar gets the value from URL, but somehow it seems that its not controlling the check property of input box. I also tried this: <input type="radio" name="vehicle_choice" id="vehicle_business" value="business" checked="<?= ($sCar == 'business' ? 'checked' : '') ?>" /> this: <input type="radio" name="vehicle_choice" id="vehicle_business" value="business" <? if ($sCar == 'business') { ?> checked <? } ?>" /> and this: <input type="radio" name="vehicle_choice" id="vehicle_business" value="business" <? if ($sCar == 'business') { ?> checked="checked" <? }?> /> with no results. I also tried to avoid short tags (<?= ) and use this <?php echo but still the same. Any ideas? 2) At this link: https://hellastransfers.com/online-booking.html you see the form from this link: http://www.hellastransfers.com/booking/taxi.php If i try to pass values to first link through ULR (https://hellastransfers.com/online-booking.html), values are not passed. What should i do, in order the coding i did at first question to be in valid at this ULR: https://hellastransfers.com/online-booking.html? Thank you in advance
  2. Hello there, I use an element attached in this zip (assets file is missing due to the file size and i don't think its necessary for what i need to ask). Its actually a button with a pop up form, where the user fills in the name, lastname, e-mail and e-mail confirmation, telephone(optional), question/comment, send copy to my e-mail fields. Inside this, i need to add an extra field, where the user can upload his/her cv (doc, docx, txt, rtf, pdf file types) and when click on send the user will receive the CV file also along with the other information. I tried to add an Upload field called cv inside the code, but when i click on send, i have message: Invalid file type but the message is sent and at the e-mail i see all the info but i see the file name of cv, not the file. Any help with this please?A friend of mine that took a look told me that this form sends info via ajax and that i have to change the way that the information is being sent in order to be able to send the file. Thank you in advance contact-form.zip
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.