Jump to content


  • Posts

  • Joined

  • Last visited

divz2's Achievements


Newbie (1/14)



  1. Thank you for the reply. I will try this in the future. :)
  2. THANK YOU. THANK YOU. It is working!! I was struggling so much with it. Thank you so much for your help. :)
  3. Hi, I am struggling with a form in php. I am trying to add a form by using the include function. I want to include thsi form on all pages so it would be very useful if I can save the current page name somewhere so that I can use to validate the form. For example, this is the form I am trying to include. <?php if(!empty($errors)) { if(isset($errors['sendError'])) { echo '<p><strong class="error">There was a problem with our system please contact us directly.</strong></p>'; } else { echo '<p><strong class="error">Please check the form below for errors.</strong></p>'; } } ?> <form action="index.php" method="post" id="form1"> <p> <label><?php if(isset($errors['name'])) { echo '<span class="error">'; } ?>Name<font color="red">*</font>: <?php if(isset($errors['name'])) { echo '</span>'; } ?></label> <input id="search1" id="complete" type="text" value="<?php echo $form['name']; ?>" name="name" size="60" align="right" style="background:#EEF5A4" /><br /> <label><?php if(isset($errors['company'])) { echo '<span class="error">'; } ?>Company: <?php if(isset($errors['company'])) { echo '</span>'; } ?></label> <input id="search1" id="complete" type="text" value="<?php echo $form['company']; ?>" name="company" size="60" align="right" /><br /> <label><?php if(isset($errors['phone'])) { echo '<span class="error">'; } ?>Phone Number: <?php if(isset($errors['phone'])) { echo '</span>'; } ?></label> <input id="search1" id="complete" type="text" value="<?php echo $form['phone']; ?>" name="phone" size="60" align="right" /><br /> <label><?php if(isset($errors['email'])) { echo '<span class="error">'; } ?>Email<font color="red">*</font>: <?php if(isset($errors['email'])) { echo '</span>'; } ?></label> <input id="search1" id="complete" type="text" value="<?php echo $form['email']; ?>" name="email" size="60" align="right" style="background:#EEF5A4" /><br /> <label><?php if(isset($errors['enquiry'])) { echo '<span class="error">'; } ?>Enquiry: <?php if(isset($errors['enquiry'])) { echo '</span>'; } ?></label> <textarea id="search1" id="complete" textarea name="enquiry" rows=4 cols=40 value="<?php echo $form['enquiry']; ?>" name="enquiry" size="60" align="right"></textarea> </p> <p> <input type="submit" class="formbutton" value="Submit" /> <input type="reset" class="formbutton" value="Reset" /> </p> <p><font color="red">*</font> Denotes a required field</p> </form> Because I am going to use this form on all pages, I would like it to include whatever the filename is rather than index.php in the first line of the form so that when the user clicks submit, it will stay on the same page but validate the form based on the mandatory fields. I don't know if the question is clear. I would very much appreciate any help at all. Thank you very much.
  4. divz2


    Let me try and explain my questions clearly. Question 1: I have installed WP and added my css and index pages as a new theme in the themes folder. It is working. Now I want to add new pages to this website, how do I do it with WP? Question 2: I already designed & programmed a website www.independentsunsupport.com. I hand coded this. I have few more websites that need to be designed with the same css background (maybe just few colour changes). All these websites are similar to my www.independentsunsupport.com. The layout will be the same but the sub pages and its content will be different based on the type of product. How can I do this? Thank you very much indeed.
  5. divz2


    Hi all, Thank you very much for all the replies. I am glad that WP can be used for creating/maintaining websites. I know its a very basic question but how can I emulate the index page and the css code I have in my website into wordpress? I created a my new theme folder in "themes" folder and added the index and css pages (Understood this procedure after seeing the videos on killersites website). It works but I am not sure how this same css and template can be used for other websites? Also how can the pages be changed in other websites without messing with the code? Sorry about these questions as they may seem very basic. Thank you very much once again.
  6. divz2


    Hi, I am new to CMS/Wordpress and would like some help please. I have started programming quite few websites (all of them manually - page by page). Now I am doing much bigger websites and hand coding each page is getting more and more difficult. After reading your CMS forums, I downloaded Wordpress and installed it correctly. It is working now. I am still very confused as to how this template format can be used for websites? I am looking to develop websites similar to my http://www.independentsunsupport.com/ and wanted some guidance as to how Wordpress can be used. Any help will be very much appreciated. Thank you.
  7. Thank you very much once again. I was struggling a lot with the alignment so this is a very big help. About the >> in html code, I was trying to close the " and the second one was to have the ">" appear on my page. I have changed it now to > and it is working. Thanks a lot once again.
  8. Home | Company | Support Services | Sun Product Support | Contact Us > High-End Servers > Midrange Servers > Workgroup Servers > Workstations > Netra Servers > Sun Storage > Cobalt Web Servers > HPC Servers > Hardware Independent Sun High-End Server Support Independent Sun Support is the leading Sun support provider. We have over 19 years of hands-on support experience, maintaining mission critical environments across the UK and Europe. Bulletproof your support and minimise downtime with an independent service plan from us. We have Sun certified engineers available nationwide, 24 hours a day and seven days a week. Each certified Sun engineer has specific technical knowledge to maintain the functionality of Sun servers at a performance level, that optimises data-centre efficiency and improves your ROI. Sun's high-end servers are designed to meet the mission critical demands of the datacenter. The Sun high-end servers provide over five times greater performance, doubled memory capacity and significantly increased I/O performance over previous generation systems. The new Sun SPARC Enterprise servers, feature the powerful dual core SPARC64 VI processor and provide mainframe-class RAS at open system prices. Highly scalable, with up to 24 dynamic domains and thousands of Solaris containers per system these servers enable massive server consolidation and datacenter virtualisation. > High-End Servers > Midrange Servers > Workgroup Servers > Workstations > Netra Servers > Sun Storage > Cobalt Web Servers > HPC Servers > Hardware Home | Company | Support Services | Sun Product Support | Site Map | Contact Us
  9. Thank you! Thank you! Thank you! It works beautifully now. I now understand what mistakes I was making. This forum is always a great learning experience. Thanks a ton.
  10. Hi Everyone, I am struggling with the div's in my website layout. The link is http://www.independentsunsupport.com/ I added yellow and red as dummy colors for the background so that I can understand where the problem lies. I want the footer menu to be just below the main content. Can anyone please help me with this layout problem. It is very much appreciated. Thank you.
  11. divz2

    Forms in PHP and MySql

    Hi, Thank you once again for all your replies. I am still struggling with the forms and databases... How do I create a database on my host? (My website is currenly hosted by a company called Verio). I checked the control panel for the website but I cannot seem to find any database creation tool on it. Is there any other method to create a database for an online form? Sorry about these basic questions - I am new to all this php/mysql so struggling with the concepts. Also are there any tutorials that can show the step by step process. Thanks a lot.
  12. divz2

    Forms in PHP and MySql

    I am trying to collect data entered on my website (in php) into the sql databases and tables located on my local phpmyadmin. Or is there any other correct procedure to collect online form data? Can anyone please let me know what is the procedure to do this. Thank you.
  13. divz2

    Forms in PHP and MySql

    So will the user details be the same as the login details that I use to connect to my website using ftp?? If not, then where will I find the username and password for this code to work? Thanks a lot.
  14. divz2

    Forms in PHP and MySql

    Thank you for your reply. It might be a silly question but how is the form working on localhost if the username and password are wrong? Am I missing something basic? It is updating the database in phpmyadmin when I run the form on localhost but giving error after uploading the form onto my website. Any help is very much appreciated. Thanks.
  15. Hi, I am trying to write code for an online form in php and mysql so that the form information will be collected in a database in phpmyadmin. The code is working locally (when I use localhost) but it is not working online when I upload the form onto my website. Can you please tell me what the problem is? Thank you very much. Form php code: $name = $_POST['name']; $company = $_POST['company']; $phone = $_POST['phone']; $email = $_POST['email']; $address = $_POST['address']; mysql_connect("localhost", "root", "my_password") or die('Error: '.mysql_error()); mysql_select_db("olympic_support"); $query="INSERT INTO reseller_pack (name,company,phone,email,address) VALUES ('$_POST[name]','$_POST[company]','$_POST[phone]','$_POST[email]','$_POST[address]')"; mysql_query($query) or die('Error updating database'); echo "Database updated"; When I try to run the page on my website, I am getting the following error: Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in /home/exquip/www/olympicsupport.com/resellerform.php on line 63 Error: Access denied for user 'root'@'localhost' (using password: YES)
  • Create New...