Curso envío de datos al servidor con PHP – 3. Ejercicio Propuesto

Para este ejercicio te propongo el siguiente reto.

Luís quiere que se le dibuje una tabla HTML en pantalla con las características de su ordenador enviados mediante un formulario.

La tabla debe tener ser similar a la mostrada en el siguiente ejemplo.

Los datos deben ser procesados mediante PHP en la misma página donde esta el formulario.

Se deben cumplir las siguientes normas:

  • – En la recepción de datos del formulario se deben almacenar los datos de cada campo en variables (No sirve utilizar el POST[] directamente para impresión)
  • – Utilizar el patrón MVC. Es decir, los datos se deben procesar en la parte superior de la página (El controlador) y las impresiones de los datos (los echo) solo deben estar en la vista (La parte de código HTML).
  • – La foto se almacenara en una carpeta del servidor y debe estar validada para revisar que tenga el formato correcto, el nombre de archivo no se repita en el servidor y que tenga un tamaño inferior a 5 megas.
  • – El código debe estar optimizado, además de incluir las funciones que consideres necesarias para el ejercicio en un archivo PHP aparte.

 

Paso a seguir:

  • Crear un nuevo proyecto
  • Realizar un formulario con los campos necesarios para llenar la tabla
  • Validad los datos con Javascript (Opcional)
  • Codificar la recepción de los datos del formulario con código PHP. (Mejor con un foreach).
  • Crear el código final html para su impresión en una variable concatenando el código según se genere.
  • Imprimir la tabla en la parte HTML utilizando la función echo de PHP.

 

Ejemplo de la tabla:

 

Mi ordenador
Tipo Todo en uno
CPU  Intel XEON
RAM  32 Gigas
HD 2 TB
Pantalla  27 Pulgadas
SO Macos
Web Fabricante:  APPLE

 

 

 

 

 

129 comentarios

  1. Hey! This is my first visit to your blog!

    We are a team of volunteers and starting a new initiative in a community in the same niche.
    Your blog provided us beneficial information to work on. You have done
    a extraordinary job!

  2. I used to be recommended this web site by my cousin. I am now not sure whether or not this submit is written via him as
    nobody else know such specified approximately my
    trouble. You’re incredible! Thanks!

  3. Your style is very unique compared to other people I’ve read
    stuff from. Thank you for posting when you’ve got the opportunity, Guess I’ll just bookmark this web
    site.

  4. Greetings from Idaho! I’m bored at work so I decided to browse your site on my iphone during lunch break.
    I love the knowledge you present here and can’t wait to take a look
    when I get home. I’m shocked at how fast your blog loaded on my cell phone ..
    I’m not even using WIFI, just 3G .. Anyways, fantastic site!

  5. Wonderful website you have here but I was curious if you knew
    of any forums that cover the same topics talked about in this article?
    I’d really like to be a part of community where I can get opinions
    from other experienced individuals that share the same interest.
    If you have any recommendations, please let me know.
    Many thanks!

  6. Thank you for the auspicious writeup. It in fact was a amusement account it.

    Look advanced to far added agreeable from you!
    By the way, how could we communicate?

  7. Hello there, just became aware of your blog through Google, and
    found that it is really informative. I’m going to watch out for brussels.
    I’ll appreciate if you continue this in future.
    Numerous people will be benefited from your writing.
    Cheers!

  8. Do you mind if I quote a few of your posts as long as I provide credit and sources back
    to your webpage? My blog site is in the very same
    niche as yours and my visitors would really benefit from some of the information you present here.
    Please let me know if this ok with you. Appreciate it!

  9. Greetings! Quick question that’s totally off topic.
    Do you know how to make your site mobile friendly? My weblog looks weird
    when viewing from my iphone 4. I’m trying to find a theme or plugin that
    might be able to correct this problem. If you have
    any recommendations, please share. Cheers! games ps4 allenferguson games ps4

  10. Hello there! This post could not be written any better!
    Reading this post reminds me of my good old room mate!
    He always kept talking about this. I will forward this
    post to him. Fairly certain he will have a good read.
    Thanks for sharing!

  11. We stumbled over here coming from a different page and thought I might as well check
    things out. I like what I see so now i am following you.
    Look forward to looking over your web page repeatedly.

  12. My brother suggested I might like this blog.
    He was once entirely right. This publish truly made my day.
    You can not believe just how a lot time I had spent for this info!

    Thanks!

  13. I was recommended this website by my cousin. I
    am not sure whether this post is written by him as nobody else know such detailed about my difficulty.
    You are wonderful! Thanks!

  14. Today, while I was at work, my sister stole my iphone and tested to see if it
    can survive a thirty foot drop, just so she can be a youtube sensation. My iPad is now broken and she has 83 views.
    I know this is entirely off topic but I had to share it with someone!

  15. Everything is very open with a really clear explanation of the issues.
    It was truly informative. Your site is very useful. Many thanks for sharing!

  16. It’s very simple to find out any matter on web as
    compared to textbooks, as I found this paragraph at this site.

  17. Admiring the commitment you put into your website and detailed
    information you provide. It’s great to come across a blog every once in a while
    that isn’t the same old rehashed material. Great read!
    I’ve saved your site and I’m including your RSS feeds to my Google account.

  18. My brother recommended I would possibly like
    this blog. He used to be totally right. This publish truly made my day.
    You cann’t believe simply how much time I had spent for this information! Thanks!

    my web page; wukong333 kiosk download (918kiss-m.com)

  19. Thank you for another informative website. The place else may
    just I am getting that type of information written in such an ideal method?

    I’ve a mission that I am just now running on, and I’ve been at the glance out for such info.

    Check out my blog: test wm casino; 918kiss-m.com,

  20. Hiya very cool blog!! Man .. Beautiful .. Amazing .. I’ll bookmark your website and take the feeds
    additionally? I’m glad to find a lot of useful info right here within the submit, we’d like work out more techniques on this regard, thank you for sharing.

    . . . . .

    Also visit my web page … ok388 slot

  21. You actually make it seem so easy with your presentation but
    I find this topic to be really something that I think I
    would never understand. It seems too complex and extremely broad for
    me. I am looking forward for your next post, I will try
    to get the hang of it!

    My website: scr mega888

  22. Oh my goodness! Incredible article dude! Thank you so much,
    However I am experiencing problems with your RSS.
    I don’t understand why I can’t subscribe to it. Is there anybody else having the
    same RSS issues? Anyone that knows the solution will you
    kindly respond? Thanx!!

    Here is my homepage: test greatwall99 (918kiss-m.com)

  23. Hi there! This blog post couldn’t be written much better!
    Going through this article reminds me of my previous roommate!
    He continually kept preaching about this.
    I’ll send this information to him. Fairly certain he’ll have a good read.

    Thank you for sharing!

    Also visit my blog post; Live22 Free Rm20

  24. Great weblog right here! Also your web site loads up very fast!
    What host are you using? Can I am getting your associate
    link for your host? I wish my web site loaded up as fast as yours
    lol

  25. Great post. I was checking constantly this
    blog and I’m impressed! Very useful information particularly the remaining phase :
    ) I maintain such info a lot. I was seeking this certain information for a
    very long time. Thanks and good luck. 0mniartist
    asmr

  26. It’s a pity you don’t have a donate button! I’d certainly donate to this fantastic blog!
    I suppose for now i’ll settle for book-marking and adding your RSS feed to
    my Google account. I look forward to new updates and will talk about this website with my Facebook group.
    Talk soon!

    Check out my web site: 918kiss 2 Company

  27. Howdy, i read your blog from time to time and
    i own a similar one and i was just curious if you get
    a lot of spam feedback? If so how do you protect against it,
    any plugin or anything you can recommend? I get so much lately it’s
    driving me mad so any assistance is very much appreciated.
    0mniartist asmr

  28. you are truly a good webmaster. The website loading speed is incredible.
    It sort of feels that you are doing any distinctive trick.

    Furthermore, The contents are masterwork. you have performed a magnificent task in this topic!
    0mniartist asmr

  29. I have read several good stuff here. Certainly price bookmarking for
    revisiting. I surprise how so much effort you set to make one of these wonderful informative web site.

  30. Superb blog! Do you have any suggestions for aspiring writers?
    I’m hoping to start my own site soon but I’m a little lost on everything.
    Would you advise starting with a free platform like WordPress or go for a
    paid option? There are so many options out there that I’m totally overwhelmed ..
    Any ideas? Bless you!

  31. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point.
    You clearly know what youre talking about, why throw
    away your intelligence on just posting videos to your blog when you could be giving us something enlightening to read?

  32. Unquestionably imagine that that you said. Your favourite justification seemed to be on the net the simplest thing to take into account of.
    I say to you, I certainly get annoyed at the
    same time as folks think about issues that they plainly do not
    realize about. You controlled to hit the nail upon the top and also outlined out the
    whole thing with no need side effect , other people
    could take a signal. Will likely be again to get more. Thanks

  33. I am not sure where you are getting your information, but great topic.
    I needs to spend some time learning much more or
    understanding more. Thanks for magnificent info I was
    looking for this info for my mission.

  34. scoliosis
    continuously i used to read smaller content which
    also clear their motive, and that is also happening
    with this post which I am reading at this place. scoliosis

  35. scoliosis
    Write more, thats all I have to say. Literally, it
    seems as though you relied on the video to make your point.
    You obviously know what youre talking about, why waste your intelligence on just posting videos to your
    blog when you could be giving us something enlightening to read?
    scoliosis

  36. scoliosis
    I’ll immediately grab your rss feed as I can’t in finding your email subscription hyperlink or e-newsletter service.
    Do you have any? Kindly let me realize so that I may subscribe.
    Thanks. scoliosis

  37. free dating sites
    I’m no longer sure the place you’re getting your info,
    but great topic. I needs to spend some time finding out much more
    or understanding more. Thank you for magnificent information I
    was on the lookout for this info for my mission. dating sites

  38. Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! However, how could we communicate?

  39. Link exchange is nothing else however it is only placing the other
    person’s web site link on your page at proper place and other
    person will also do similar in favor of you.

  40. Fantastic goods from you, man. I have understand your stuff previous to
    and you’re just extremely magnificent. I really like what
    you’ve acquired here, really like what you’re saying and the
    way in which you say it. You make it entertaining and
    you still care for to keep it wise. I cant wait to read far more from you.
    This is really a wonderful website.

  41. Hi, I think your website might be having browser compatibility issues.
    When I look at your website in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping.

    I just wanted to give you a quick heads up! Other then that,
    superb blog!

  42. Howdy! I just would like to give you a big thumbs up for your excellent info you have right here on this post.
    I’ll be returning to your website for more soon.

  43. I am extremely impressed with your writing skills as well as with
    the layout on your weblog. Is this a paid theme or did you modify it yourself?

    Either way keep up the excellent quality writing, it’s rare to see a great blog like this one these
    days.

  44. Someone necessarily help to make significantly articles I
    would state. That is the first time I frequented
    your web page and thus far? I surprised with the analysis you made to create this particular post incredible.
    Wonderful task!

  45. Good day! Do you know if they make any plugins to assist
    with Search Engine Optimization? I’m trying to get my blog to
    rank for some targeted keywords but I’m not seeing very good gains.

    If you know of any please share. Thanks!

  46. I used to be recommended this blog by way
    of my cousin. I’m not sure whether this publish is written through him as nobody else understand such specified approximately my difficulty.
    You are incredible! Thanks!

  47. Wonderful blog! I found it while browsing on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Thank you

  48. Everything said was actually very reasonable. However, consider this, what if you were to create a killer title?
    I ain’t saying your content isn’t solid., but suppose you added something that makes people desire more?
    I mean Curso envío de datos al servidor con PHP – 3.
    Ejercicio Propuesto – Mentes Inquietas is a little
    vanilla. You might glance at Yahoo’s front page and watch how they
    create news headlines to get viewers to open the links.

    You might add a related video or a related picture or two to get
    readers interested about what you’ve written. In my opinion, it could make your
    website a little livelier.

  49. I know this if off topic but I’m looking into starting my
    own weblog and was curious what all is required to get setup?
    I’m assuming having a blog like yours would cost a pretty penny?

    I’m not very internet savvy so I’m not 100% certain. Any tips or advice would be greatly appreciated.
    Many thanks

  50. Great goods from you, man. I’ve understand your stuff previous to and you are just extremely magnificent.

    I actually like what you have acquired here, certainly like what you’re saying and the way in which you say it.
    You make it enjoyable and you still care for to keep it sensible.
    I can’t wait to read far more from you. This is actually a
    wonderful web site. scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

  51. I think this is one of the most significant information for me.
    And i am glad reading your article. But want to remark on few general things,
    The site style is great, the articles is really
    great : D. Good job, cheers

  52. You really make it seem so easy with your presentation but I find this matter to be really something which I
    think I would never understand. It seems too complicated and very broad for me.

    I am looking forward for your next post, I’ll try to get the hang
    of it!

  53. Hi every one, here every one is sharing such knowledge, so it’s nice to read this webpage, and I used to pay a quick visit this
    blog all the time.

  54. Excellent web site you have got here.. It’s hard to find quality writing like yours
    nowadays. I truly appreciate individuals like you!
    Take care!!

  55. I am really enjoying the theme/design of your blog. Do you ever run into any internet browser compatibility problems?
    A few of my blog audience have complained about my blog not operating correctly in Explorer
    but looks great in Safari. Do you have any ideas to help fix this problem?

  56. I am not sure where you’re getting your info, but good topic.
    I needs to spend some time learning much more or understanding more.

    Thanks for magnificent information I was looking for this information for my mission.

  57. Hi there every one, here every person is sharing such familiarity,
    thus it’s fastidious to read this weblog, and I used to go
    to see this website everyday.

  58. I’ve been surfing online more than 4 hours today, yet I never found any interesting
    article like yours. It’s pretty worth enough for me. Personally, if all site owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.

  59. We’re a group of volunteers and opening a new scheme in our
    community. Your site offered us with valuable information to work
    on. You have done a formidable job and our whole community will be thankful to
    you.

  60. I’m truly enjoying the design and layout of your site. It’s a very easy on the eyes which makes it much more pleasant for
    me to come here and visit more often. Did you hire out a designer to create your theme?
    Superb work!

  61. Woah! I’m really digging the template/theme of this website.

    It’s simple, yet effective. A lot of times it’s very difficult to get that «perfect balance» between superb usability and visual appearance.
    I must say you have done a fantastic job with this. Additionally, the blog
    loads very quick for me on Opera. Excellent Blog!

  62. With havin so much content do you ever run into any problems of plagorism or
    copyright violation? My site has a lot of completely unique content I’ve either authored myself or outsourced but it looks like a lot of it is
    popping it up all over the web without my permission. Do you know any methods to help reduce content from being ripped off?
    I’d definitely appreciate it.

  63. Hey just wanted to give you a brief heads up and let you know a
    few of the images aren’t loading properly.
    I’m not sure why but I think its a linking issue.

    I’ve tried it in two different browsers and both show the same outcome.

  64. Great beat ! I would like to apprentice even as you amend
    your web site, how could i subscribe for a weblog site?
    The account aided me a applicable deal. I were tiny bit familiar of this your broadcast offered vibrant
    clear idea

  65. It’s amazing to go to see this site and reading the views of all mates about this
    piece of writing, while I am also zealous of getting experience.

  66. First of all I want to say fantastic blog! I had a quick question that I’d like to ask if
    you don’t mind. I was interested to know how you center
    yourself and clear your thoughts prior to writing. I’ve had difficulty clearing my thoughts in getting my thoughts out.

    I do take pleasure in writing however it just seems like the first 10 to 15 minutes are generally lost simply just trying
    to figure out how to begin. Any suggestions or tips? Thank you!

  67. Wow, incredible blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your site is wonderful, let alone the content!

  68. I am really impressed with your writing skills as well as with the layout
    on your blog. Is this a paid theme or did you customize
    it yourself? Anyway keep up the excellent quality writing, it is rare to
    see a nice blog like this one nowadays.

  69. Hey! I know this is kind of off-topic but I needed to ask.
    Does managing a well-established website like yours
    take a lot of work? I’m brand new to operating a blog but I do
    write in my diary everyday. I’d like to start a blog so I will be able to share my own experience and thoughts online.

    Please let me know if you have any kind of recommendations
    or tips for brand new aspiring blog owners. Appreciate it!

  70. My brother recommended I might like this blog. He was entirely
    right. This post actually made my day. You cann’t imagine just how much time I had spent for
    this info! Thanks!

  71. Woah! I’m really enjoying the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s very hard to get that «perfect balance» between user friendliness and visual appearance.

    I must say that you’ve done a great job with this. Also, the blog loads extremely quick for me on Chrome.

    Outstanding Blog!

  72. Hey there this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if
    you have to manually code with HTML. I’m starting a blog soon but
    have no coding know-how so I wanted to get advice from someone with experience.
    Any help would be enormously appreciated!

  73. I’m really enjoying the design and layout of your site.
    It’s a very easy on the eyes which makes it much more pleasant for me
    to come here and visit more often. Did you hire out a designer
    to create your theme? Great work!

    My page – special

  74. Have you ever considered about adding a little bit more
    than just your articles? I mean, what you say is fundamental and all.

    Nevertheless think about if you added some great visuals or video clips to give your posts
    more, «pop»! Your content is excellent but with images
    and clips, this website could undeniably be one of the very best in its field.
    Fantastic blog!

  75. Just wish to say your article is as amazing. The clearness in your post is just cool and i could
    assume you are an expert on this subject. Fine with your permission let me to grab your RSS feed to
    keep up to date with forthcoming post. Thanks a million and please carry on the enjoyable work.

  76. I seriously love your site.. Pleasant colors & theme.
    Did you build this amazing site yourself? Please reply back as
    I’m attempting to create my own personal website and
    would love to learn where you got this from or exactly what the theme is called.
    Cheers!

    Here is my webpage: tracfone coupon

Dejar un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *