Jump to content

Posting html aswell as post contents in form

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Posting html aswell as post contents in form Rate Topic: -----

#1 User is offline   gab1982 

  • W.R. Corporal
  • Group: Members
  • Posts: 55
  • Joined: 24-February 07

Post icon  Posted 25 March 2009 - 07:24 PM

I want to post a forms contents which is pretty simple however I want to also add some html wrapping around whatever the user enters into the field called iframe in my form.

The html I want to add is: "<div class='iframebdr'>"iframe content will go here"</div>"

I have included my file and have made various attempts but can't seem to do it, any help would be much appreciated.

Attached File(s)


0

#2 User is offline   Karl Buckland 

  • A.K.A. Sirkent
  • Group: Administrators
  • Posts: 2,145
  • Joined: 04-April 06
  • Gender:Male
  • Location:Kent, UK

Posted 26 March 2009 - 04:23 AM

I don't understand what you're trying to do? Could you please explain in a little more detail?
QUOTE(benbramz @ Aug 17 2007, 07:44 AM) Ive noticed that quite a few people are now adding quotes from the board into their signature. I think its started an new web-radiance craze.. :P
0

#3 User is offline   gab1982 

  • W.R. Corporal
  • Group: Members
  • Posts: 55
  • Joined: 24-February 07

Posted 26 March 2009 - 08:00 AM

View PostSirkent, on Mar 26 2009, 09:23 AM, said:

I don't understand what you're trying to do? Could you please explain in a little more detail?



Basically atm its sending whatever the user types into the textarea into the db but i also want it to send "<div class='iframebdr'> aswell as whatever the user types into the textarea </div>" so basically the xhtml gets sent and whatever the user typed in also gets sent.
0

#4 User is offline   Karl Buckland 

  • A.K.A. Sirkent
  • Group: Administrators
  • Posts: 2,145
  • Joined: 04-April 06
  • Gender:Male
  • Location:Kent, UK

Posted 27 March 2009 - 02:59 AM

Why? That would be fairly bad practice. What if you wanted to change that XHTML later on? You'd need to update every single database record. Why not add the XHTML when the data is displayed?
QUOTE(benbramz @ Aug 17 2007, 07:44 AM) Ive noticed that quite a few people are now adding quotes from the board into their signature. I think its started an new web-radiance craze.. :P
0

#5 User is offline   gab1982 

  • W.R. Corporal
  • Group: Members
  • Posts: 55
  • Joined: 24-February 07

Posted 27 March 2009 - 07:00 AM

View PostSirkent, on Mar 27 2009, 07:59 AM, said:

Why? That would be fairly bad practice. What if you wanted to change that XHTML later on? You'd need to update every single database record. Why not add the XHTML when the data is displayed?


Usability has to come before practise and its so the user doesn't mess up the sizes so needs to be done in terms of practise though i can just edit the css and the width will alter throughout.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users