Jump to content

Multi-line _IEFormElementSetValue


Recommended Posts

Hey,

I'm trying to use _IEFormElementSetValue to set an inputbox to a multi-line string (I'm not good at explaining I know).

I want it to look something like this:

My problem:

(insert variable here)

My solution:

(insert variable here)

The function picks the correct input box, but I can only seem to have it send one line. I was able to do this in the past with send by just sending an enter whenever I wanted a new line, but now I want the script to be able to run in the background, so this is no longer an option. Can anyone help?

Link to comment
Share on other sites

Here's what I've got so far

Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0)
Local $newform = _IEFormGetCollection($oIE, 0)
Local $description = _IEFormElementGetCollection($newform, 1)
_IEFormElementSetValue($description, "test"&"test");this is where the multi-line string goes

I'm trying to improve my knowledge of a few programming languages, so I made a little php page that submits problems and solutions to a database.

Link to comment
Share on other sites

1 minute ago, alechielke said:

Here's what I've got so far

Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0)
Local $newform = _IEFormGetCollection($oIE, 0)
Local $description = _IEFormElementGetCollection($newform, 1)
_IEFormElementSetValue($description, "test"&"test");this is where the multi-line string goes

I'm trying to improve my knowledge of a few programming languages, so I made a little php page that submits problems and solutions to a database.

Try this:

Global $oIE = _IECreate('localhost/database/newcodeproblemsolution.php', 0)
Local $newform = _IEFormGetCollection($oIE, 0)
Local $description = _IEFormElementGetCollection($newform, 1)
_IEFormElementSetValue($description, "test" & @CRLF & "test");this is where the multi-line string goes

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...